- From: Shivananda Somayaji <somayaji@lgsi.co.in>
- Date: Wed, 23 Aug 2000 09:57:10 -0400
- To: Peter Stamfest <peter.stamfest@eunet.at>
- CC: www-lib@w3.org, jim_marshall2268@hotmail.com
Actually, I start with downloading a URL, say www.washingtonpost.com and I get the html source for the page. I have to parse that page to look for the jpgs, gifs, mpegs in the page and download them individually. I use HTLoadToFile with the URL of those jpgs,gifs etc. which are actually extracted as HTAnchor from the main page.I convert this Anchor to char * before passing to HTLoadToFile. Example HTLoadToFile("http://209.185.130.251/spacer.gif",request,filename). Any suggestions ? Shivananda > On Wed, 23 Aug 2000, Jim Marshall wrote: > > > Date: Wed, 23 Aug 2000 13:20:14 GMT > > From: Jim Marshall <jim_marshall2268@hotmail.com> > > To: somayaji@lgsi.co.in, www-lib@w3.org > > Subject: Re: Libwww query. > > Resent-Date: Wed, 23 Aug 2000 09:20:56 -0400 (EDT) > > Resent-From: www-lib@w3.org > > > > What are you passing to HTLoadToFile? I haven't tried the file types you > > mention, but I've done other types (zip, gz, exe, so, dll) without any > > problems. > > > > -Jim > > > > > > >From: "Shivananda Somayaji" <somayaji@lgsi.co.in> > > >To: www-lib@w3.org > > >Subject: Libwww query. > > >Date: Tue, 22 Aug 2000 18:54:23 -0400 > > > > > >Hello, > > > > > >Is there a way to load a gif or mpeg or jpg into a local file ? I am > > >trying to write an application to do that. If I use HTLoadToFile, it > > >doesn't seem to do the job. It only gets me the source file (html). > > >Kindly give suggestions. > > Seems you download a page containing a _link_ to the file (anchor, img > tags) you are actually interested in. You should download the URL you are > _really_ interested in instead... > > peter > > > > > > >Thanks > > >Shivananda. > > > > > > > > > > ________________________________________________________________________ > > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com > > > > -- > Peter Stamfest UNIX, Networking & Computing Consultant > Tel: +43/699/20711205 Software Development > E-Mail: ps@psncc.at WWW: http://www.psncc.at/ > peter.stamfest@eunet.at
Received on Wednesday, 23 August 2000 18:01:08 UTC