Re: Getting image from JSON

2017-09-06 Thread Douglas Cryer via 4D_Tech
OK I have figured it out… BASE64 DECODE($vt_Image;$vx_BLOb) BLOB TO PICTURE(vx_BLOb;$vg_Picture;”.png”) Works… Regards, Dougie telekinetix Limited- J. Douglas Cryer Phone : 01234 761759 Mobile : 07973 675 218 2nd Floor Broadway House, 4

Re: Getting image from JSON

2017-09-06 Thread Jeffrey Kain via 4D_Tech
It's probably base64. I think the commands in 4D are base64 encode and base64 decode -- Jeffrey Kain jeffrey.k...@gmail.com > On Sep 6, 2017, at 9:15 AM, Douglas Cryer via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Hopefully this is a simple one for many people out there. > > I am working

Getting image from JSON

2017-09-06 Thread Douglas Cryer via 4D_Tech
Hopefully this is a simple one for many people out there. I am working with a REST service that is returning an image in a JSON response. The image is coming back as a long text value and I am not sure what steps I need to go through to convert it to an image. I tried : TEXT TO BLOB($vt_Image;