Re: Determining if an image exists
Re: Determining if an image exists
- Subject: Re: Determining if an image exists
- From: David Griffith <email@hidden>
- Date: Thu, 17 Feb 2005 18:18:51 +0100
Thanks Damien,
Had a look but it's using Resource Manager which I don't think will help me
here. The images are not in my application, they are only referred to from
it. They are located at a different location on the website. The URL is
created dynamically based on a product code. For example:
http://www.myserver.com/images/products/10001/image1.jpg
http://www.myserver.com/images/products/10001/image2.jpg
http://www.myserver.com/images/products/10001/image3.jpg
http://www.myserver.com/images/products/10001/image4.jpg
http://www.myserver.com/images/products/10002/image1.jpg
http://www.myserver.com/images/products/10002/image2.jpg
The point being that I need to check if image3.jpg and image4.jpg exist for
product 10002 in this case. If they do not, I do not want to display an
'unloaded image' icon, I want to set a boolean which will avoid the image
being shown at all.
Regards,
David.
> Look at:
>
> http://wocode.com/cgi-bin/WebObjects/WOCode.woa/1/wa/ShareCodeItem?
> itemId=269
>
> It can perhaps help you
>
>
> On 17 févr. 05, at 16:02, David Griffith wrote:
>
>> Hi all,
>>
>> Just wondered if anyone has a simple approach to use Java in
>> WebObjects to determine if an image (or file) exists at a URL.
>>
>> What I¹m doing is fairly simple, I want to display up to 4 images
>> which have dynamic URL¹s. I want to check first if the image (URL)
>> actually exists on the web server. If not, I don¹t want to display
>> it.
>>
>> Any suggestions?
>>
>> Kind regards,
>> David. _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden