Image is not showing on browser after hitting the image url

avijit143avijit143 Member Posts: 1
edited March 2018 in Development
Hi LightSpeed,
I am not getting the base64 format of an image after hitting the image url. I have hit that particular url "https://east22.merchantos.com/API/Account/12XXX7/Image" and I have got the following response:

<?xml version="1.0"?> 1 download.jpg 1 zbnerqd467yulstsjkfm https://res.cloudinary.com/lightspeed-retail/image/upload/ 5041 2018-03-09T06:42:44+00:00 2018-03-09T09:27:41+00:00 486 0 2 download1.jpg 0 zpfwnbgejbmiewchxibs https://res.cloudinary.com/lightspeed-retail/image/upload/ 6795 2018-03-09T09:27:25+00:00 2018-03-09T09:27:41+00:00 486 0
Then, I have taken the value of "baseImageURL" and hit on browser. But, I am getting the image. I want the base64 format of that image. Please help me out on urgent basis.

Thanks in advance
Avijit
Post edited by Michael Carey on

1 comment

  • jamesratcliffejamesratcliffe Administrator, Lightspeed Staff Posts: 160 moderator
    Hi Avijit,

    You can only get the image as content-type 'image/jpeg'. If you need a base64 version, you'll need to encode it yourself.
    James Ratcliffe
    Lightspeed HQ
Sign In or Register to comment.