No, thats really something VERY strange. I just have found that standard nodejs http which used in Meteor changes image string (as well as does not work with multipart and body) and it is necessary to add “var response = HTTP.call(‘GET’, url,{npmRequestOptions: { encoding: null }})” in http module. Hope that will help as fetch appeared just couple of month ago and a lot using standard library. Solved.
Hey,
it really does sound strange. It shouldn’t take that much time.
Something like this should work:
const imageBlob = // request for getting the image from Sentinel Hub
const img = document.createElement('img');
img.width = '...'; // the same size as in the request
img.height = '...'; // the same size as in the request
img.src = URL.createObjectURL(imageBlob);
const imgContainer = document.getElementById('...'); // id of the container where you want to add the image
imgContainer.appendChild(img);
This snippet doesn’t check if there was an error while requesting the image, so that’s something to add.