I can download PNG using makeImageRequest("https://serverl/png.png"...) but I'd like to not save any file on server.
I can generate PNG in server's memory, but how to return it? I've tried many things but always got 404.
I can download PNG using makeImageRequest("https://serverl/png.png"...) but I'd like to not save any file on server.
I can generate PNG in server's memory, but how to return it? I've tried many things but always got 404.
Could it be the SSL certificates you use with https? Garmin device can be a bit picky, aren't they also tied to a specific IP address?
What if you use a hard coded IP and not something from duck dns…
Look into http traffic! Some servers add something into response and it' accepted by web browser but not by garmin proxy.
makeImageRequest only accepts response that contains only bytes from image…
This question has nothing to do with CIQ, go ask in stackowerflow
It's for CIQ because web browser download/shows image without any problem.
In this case doc should show an example how respond should look e.g. headers to be accepted by makeImageRequest.
When format of respond is bad should by INVALID_HTTP_BODY_IN_NETWORK_RESPONSE but here is 404 page not found.
Usually it's enough
header('Content-type: image/png');
DATA....
but not for ciq
When you do a makeImageRequest is actually passes back through a garmin sever to be converted into a format the Garmin device can use. So when it's on the garmin, it's no longer a png.
I know, but probably the problem is that garmin server doesn't accept response from my server.
_psx_ Not really sure why the Garmin server is not accepting the response. What you describe is exactly what I am doing for one of my radar sources in my radar widget. On demand I get the radar overlay and the map images, merge and crop, then return the combined image with the content-type header. It is all processed in the script and I don't save anything. What language are you using?
I am using PHP and have to return the data using the imagepng() function.
Ok, so I'll try to find problem later, for now I need only poc so transfer image other way (redirect, or point to static file).
BTW do you use storage to save bitmaps?
I do not store any bitmaps. Everything I do is downloaded and displayed as needed.
Similiar issue.
Hey, did you find the culprit now?