Hello !
I am trying to use to get the image data, so I am executing this request:
const response = context.request('URL.png');
Then I am converting the object JSON.stringify(response)
which shows the http response in console, confirming that the response is coming through:
0\u0000\u0000\u0000IEND�B�END","headers ...accept-ranges":"bytes","content-type":"image/png","content-length":"10456","server"...
However, response JSON.stringify(response.data)
, or headers, results in an error.
Do you know how I can get the image data from this http response ?
PS: Please note that I need to put this data in a variable.