I am trying to display image,docs from base64-string for Android and IOS. I am using inapp browser plugin to display image and doc files in app.
For IOS i am able to display images using below code.But facing issue with Android and Blackberry.
window.open(urlData, "_blank", "location=no,enableviewportscale=yes");
I am passing urlData
parameter as base-64 string. Android and Blackberry nothing is displaying. After searching i found this post
Alternative: just store that whole data string in your database. Then when you render your <img>tag you can simply dump it into the src attribute:<img src="<< base-64 encoded data string>>" />
After inserting above code i am able to display image but how to close the image ? How to open image in popup ? So user can close the image.