Read image from server

Dear,

suppose there is a https-server fom which I want to get an image from.

The link would be similar to:

https://myserver.de/subfolder/subfolder/time.jpg

In “C” I can use URLDownloadToFileA()from urlmon.h to download the image and save it as a local file.

In Scilab I tried to get the url content with http_getURL.

However I get rubbish…most likely because the server uses https (?).

The various imread() variants seem to not support loading an image from an URL.

Am I mistaken or missing something?

Best regards,

Philipp

1 Like

Hello Philipp,

In Scilab there is no http_getURL but rather http_get. Sometimes you can get rubbish because there may be redirections, hence for your URL I would try:

http_get("https://myserver.de/subfolder/subfolder/time.jpg","time.jpg",follow=%t);

S.

Hello Stéphane,

indeed …http_get, please excuse the confusion.

Your suggestion just works fine.

Thank you,

Philipp

I want to list of the invalid files attachment

Hello,

Please start a new topic and be more explicit about your request.

S.