---
title: "href_base_64_from_file method"
url: "https://reference.aspose.com/svg/python-net/aspose.svg.builder/svgimageelementbuilder/href_base_64_from_file/"
product: "Aspose.SVG for Python via .NET API References"
---


## href_base_64_from_file {#str}

Sets the 'href' attribute of the SVG 'image' element using a base64 encoded image file.


### Returns 


The current instance of SVGImageElementBuilder for method chaining.


```python
def href_base_64_from_file(self, image_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| image_path | str | The file path of the image. |


## href_base_64_from_file {#str-str}

Sets the 'href' attribute of the SVG 'image' element using a base64 encoded image file with a specified MIME type.


### Returns 


The current instance of SVGImageElementBuilder for method chaining.


```python
def href_base_64_from_file(self, file_path, mime_type):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| file_path | str | The file path of the image. |
| mime_type | str | The MIME type of the image. |



### See Also
* module [`aspose.svg.builder`](../../)
* class [`SVGImageElementBuilder`](/svg/python-net/aspose.svg.builder/svgimageelementbuilder)
