• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Determining if an image exists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Determining if an image exists
      • From: PA <email@hidden>
  • Prev by Date: Re: Determining if an image exists
  • Next by Date: Re: Determining if an image exists
  • Previous by thread: Streaming HTTP Connection?
  • Next by thread: Re: Determining if an image exists
  • Index(es):
    • Date
    • Thread