Re: How to check for the existence of images on another web domain?
- Thanks for that - I downloaded Scott's API a few weeks ago for
something else but haven't had a chance to sit down and try it out
yet but will now. Your second suggestion would be neat particularly
as some pages will have several products on them and my logic for
doing this is to speed things up. Cheers!
--- In Easy400Group@yahoogroups.com, "Stephen Corbett"
> You could use Scott Klements HTTP API to verify the existance ofthe image
> on the ISP's system. (http://www.scottklement.com/httpapi/) Youmight want
> to run a batch program on a regular basis that stores in a file onyour
> system your product code and the URL path to the image. That wayyou can
> reduce the time to build your web page by chaining to the localfile.
> ----- Original Message -----
> From: "mjb1908" <mjb1908@y...>
> To: <Easy400Group@yahoogroups.com>
> Sent: Wednesday, June 01, 2005 10:57 AM
> Subject: [Easy400Group] How to check for the existence of images
> web domain?v5r3
> > I've built an ecommerce website using CGIDEV2 on an iseries 520
> > and all of the product images are currently stored in IFS sub-folders.
> > I have a sub-procedure called GetImage - I throw in a path and an
> > image name and it uses a C API called "Access" to determine
> > the image exists in the IFS (I think there's a CGIDEV2equivalent for
> > this nowadays).image name
> > If the image is found then it throws back the full path and
> > that was sent in otherwise it throws out a path and image namefor a
> > default image which simply states "awaiting image". These arethen
> > written out to the HTML and it all works brilliantly.image for
> > This process means I don't need to store a "awaiting image"
> > every single item that I don't yet have an image for - I don'teven
> > have to worry about it.webspace
> > However, I now want to get the images hosted on somebody elses
> > webserver to reduce the potential load on my own - I get 1Gb
> > with my ISP so, for now, I'll put them there but in fact theycould be
> > anywhere.on an
> > Is there any way that I can check for the existence of an object
> > external host in the same way that I'm currently checking the IFSuse
> > making this dependant on the visitor's browser settings.
> > I know I could keep a replica of the image folders locally, and
> > this for doing the look-up but I'd prefer to have a singleversion of
> > the truth in case they get misaligned.
> > Any ideas would be gratefully received!
> > Cheers
> > Michael Bailey - London
> > Yahoo! Groups Links