Article View: borland.public.jbuilder.java.language
Article #7759Re: How know if an image file doesn't exist's?
From: Tami Poupko
Date: Wed, 23 May 2001 19:23
Date: Wed, 23 May 2001 19:23
10 lines
1169 bytes
1169 bytes
use your code in a try and catch and make a system.out.println to tell you if the file wasn't found. Dionisio Barrantes wrote: > I retrieve an image with the sentence > Image image = getImage(getCodeBase(), imageFile); > > How can I inspect if the image file doesn't exists? There are a method as > exists() in class File?.
Technical Details
Message-ID:
<3B0C0E48.3EF0ACC3@udscorp.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-03!sn-post-01!supernews.com!corp.supernews.com!not-for-mailReferences:
<3b0ae968_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,a0059ffcbdb4488c X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-05-23 10:34:04 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-03!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: Tami Poupko <Poupko@udscorp.com> Newsgroups: borland.public.jbuilder.java.language Subject: Re: How know if an image file doesn't exist's? Date: Wed, 23 May 2001 12:23:53 -0700 Organization: Ultramar Diamond Shamrock Message-ID: <3B0C0E48.3EF0ACC3@udscorp.com> Reply-To: Poupko@udscorp.com X-Mailer: Mozilla 4.5 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 References: <3b0ae968_1@dnews> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: newsabuse@supernews.com Lines: 11