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:
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.