Closed etienne-monier closed 6 months ago
This issue has been mentioned on Image.sc Forum. There might be relevant details there:
https://forum.image.sc/t/i-cannot-open-an-image-in-the-software-via-its-url/89536/3
Issue closed thanks to replies in forum.
I, I've open a question in the image.sc forum.
(I'm not asking the same question here, but reading this is interesting for this issue comprehension)
I want to open an image whose URL looks like
http://host/path/to/picture.png?AWSAccessKeyId=xxxx&Expires=xxx&Signature=xxx
, but it opens it in the browser instead of opening it in ImageJ.It turns out the code looks at the URL string last characters to determine the extension.
The problem is that the URL query parameters should be ignored to evaluate the file extension.
I've never written Java, so I can not help you easily. But I think a stripped URL string should be built to evaluate the extension, then use the full URL to open the file.