Login  Register

Re: Importing URLs. Use content type or content disposition, please

Posted by dscho on Feb 26, 2009; 10:11am
URL: http://imagej.273.s1.nabble.com/Java-Compile-Errors-tp3693536p3693542.html

Hi,

On Wed, 25 Feb 2009, John Carlson wrote:

> We are trying to download JPEG images into ImageJ through URLs that look
> like this:
>
> http://image.llnl.gov/cmsdk/content/urn:llnl.gov:nif:archive:9991debe-47e9-4
> 894-9e1a-7e2febf26522
>
> This won't load in ImageJ, we think because there isn't a file extension on
> the end of the URL.

I tried to load the image, but it came back with

         ATTENTION

        The IMAGE Consortium resource is now being maintained by the
        Hudson Alpha Institute for Biotechnology

        Please update your bookmark to:

           http://image.hudsonalpha.org

        You will be automatically redirected to this web site in 30 seconds
        Clones continue to be available through the five IMAGE distributors.

        For questions, please send email to [hidden email]

        UCRL-WEB-235107
        LLNL Disclaimer

I am pretty sure that ImageJ will not be redirected, as it is not a 302
redirection (HTTP level), but a HTTP-EQUIV="Refresh" redirection which
would require ImageJ to _interpret_ the loaded file as HTML (which is
completely out of ImageJ's purpose).

Maybe it works if you update the URL as suggested?

Ciao,
Dscho