Have your say in Community Polls: What was/is your greatest motivation to start your own business?

base64-encoded image in the image block of the admin extension.

base64-encoded image in the image block of the admin extension.

majidetehadi
Shopify Partner
1 0 0

 

Hi,

 

I’m trying to display a JPG image that I get from an endpoint in the image component of admin blocks. This image is base64 encoded. When I try to display it like this:

src={"data:image/jpeg;base64," + image_list[capturePage].thumb}

It doesn’t display the image. How can I use these kinds of images?

 

Thanks in advance.

Replies 0 (0)