Re: using IDLnetURL to get an image from a HTTP URL into IDL [message #91369 is a reply to message #91367] |
Mon, 06 July 2015 14:53   |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
On 7/6/15 1:19 PM, Puneeth Shankar wrote:
> Hi Helder, Re. "IDLnetURL" as shown in the snippet above, my concern
> is to get an image from a remote server using a URL. I'm half way
> through actually. Meaning that I can now download and store an image
> from only such URLs; which upon opening via a browser, one can notice
> that it will contain only an image(no associated text/paragraphs
> etc). Here's my requirement: I'm hoping to download only images from
> normal URLs that contain both text and images.Let me know your
> thoughts on this. I appreciate your time and patience.Thanks for
> replying :)
>
> Kind Regards, PUNEETH puneeth89@gmail.com
>
I'm not entirely sure of your question, but my guess is that you are
trying to do something like what a web browser does? i.e. download an
.html file which has URL references to various image files?
If that is correct, then you need to make multiple requests via
IDLnetURL. Get the .html file via IDLnetURL, parse the HTML file to find
the img tags, and then download the associated images.
Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
|
|
|