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


## href_base_64_from_bytes {#bytes-str}

Sets the 'href' attribute of the SVG 'image' element using base64 encoded bytes of an image.


### Returns 


The current instance of SVGImageElementBuilder for method chaining.


```python
def href_base_64_from_bytes(self, data, mime_type):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| data | bytes | The byte array of the image data. |
| mime_type | str | The MIME type of the image. |



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