Hassan Schroeder
4/13/2009 10:05:00 PM
On Mon, Apr 13, 2009 at 1:55 PM, pm <pm240362@yahoo.fr> wrote:
> I've a piece of code that looks for 'jpeg' files and reads their exif and
> then puts them into appropriate folders. Some times 'bad formated'
> jpeg-files gives me a runtime error on the exifr call.
>
> How can I avoid this ? In the case of a bad formated jpeg file I would like
> to be able to read the next one, without interrupting the program
You can rescue the exception and log it, ignore it, whatever.
HTH,
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com