Image to hex conversion?

I am try to send image on blockchain but cannot figure how to convert to hex and make it show on tracker. Can anyone help?

I don’t think the tracker displays images, but others may have more information

https://tracker.icon.foundation/transaction/0xda2149ff50236c0d202d9382ed4930509f96cd1cc9ae51a1bc759d8d80aace1f

Some man post this on twitter

Interesting, @Bongan @2infiniti if you know how to get images to display on tracker please let us know

You just need to convert the image to base64 and attach that in the optional data field (in UTF-8, not HEX)

Example: https://tracker.icon.foundation/transaction/0xfd1d9e054cfdc5b2b2af3c176f3894b99504ec693971faa3d3ee2750f36f72e9

1 Like

Cool thread! I tried to convert an image of spongebob to base64 and send but it’s only showing up as the base64 string?

https://tracker.icon.foundation/transaction/0x21b9b2f825011b879fefc3a25da0cc1e34830a4053d95c57b64c464c7c560285

1 Like

You need to specify the data URI scheme with data:image/jpeg;base64, followed by your encoded image data.

You should get this as a result: https://tracker.icon.foundation/transaction/0x77b7b021a974479dff7ab27c41ede6e0c0ce662d39ca4191d797db059c7e2f0d

1 Like

I see, thank you for youre reply