Forum Post: image in jsdo base64 string

  • Thread starter Thread starter agent_008_nl
  • Start date Start date
Status
Not open for further replies.
A

agent_008_nl

Guest
Nice! You can have images in blob fields in an openedge temptable, they convert to a base64 string in the jsdo and can be shown in the browse without first creating files on the disk. In js for example var image = new Image(); image.src = "data:image/jpg;base64," + res[0].blb; // jpg, gif or png, res[0] is here the first record and blb the temptablefieldname document.body.appendChild(image); It should be possible to handle audio and video in a comparable way. https://developer.mozilla.org/en-US/Apps/Build/Audio_and_video_delivery http://stackoverflow.com/questions/16251136/html5-play-video-from-stored-binary-string I can imagine a funny demo (and there are serious use cases of course). ;-) -- Kind regards, Stefan Houtzager Houtzager ICT consultancy & development www.linkedin.com/in/stefanhoutzager

Continue reading...
 
Status
Not open for further replies.
Back
Top