49
Views
2
Comments
[Html 2 Image] Html 2 image not working in mobile
Question
html-2-image
Reactive icon
Forge asset by Romel Guerra

I have created a mobile application in which when I am entering the data and uploading image  (either from gallery or camera) in form, then after submitting it I am able to see it in output screen but when I download the image of output screen, the uploaded image is not visible.

Please help me for its solution.

htmltoimg.PNG
UserImage.jpg
Ibnu Sina

Hi I'm not sure if you have found the answer to this, but if someone happened to encounter the same issue this is how I do it: 

This is also happened not just on mobile but on browsers too, basically, if it's a binary data type that is dynamic/came from uploading or any other sources that is not static, there's a possibility the image isn't converted.

So what I tried is show the image using external URL and convert the binary data to base64 like this, and so far it worked
"data:image/png;base64," + TextBase64

UserImage.jpg
Osha Adidaya

This worked! thank you. You're a life saver.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.