isis-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cesar Lugo <>
Subject FW: RO web service with image string property
Date Tue, 24 Nov 2015 20:08:47 GMT


I am trying to display an image in a JavaScript client app, the image comes from an Isis RO
web service as a string, but it won't show, just shows like a broken image. I found out that
the format to properly display an image in HTML (<img>) is in a base64 format like this


"data:image/jpeg;base64,/9j//4AAQSkZJRgABAQEAlgCWAAD/  ...."


but the JSON message has the image as a string in this format:


"Tacos.jpg:image/jpeg:/9j//4AAQSkZJRgABAQEAlgCWAAD/  ...."


so, for testing purposes, I saved a copy of the JSON message and published it in a web server,
changing the string to match the base64 format shown above in the JSON file, then posted a
GET to that JSON file. When I did that and read the JSON message, it worked just fine, displaying
the image in my JavaScript client app.


Do you know if there is anything I should do to change the message, or the way JDO stores
the property so it matches the base64 format?





This email has been checked for viruses by Avast antivirus software.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message