Problem Processing Multiple images with JAI.create

Hello

I am trying to process a directory with 10 image files in it and I read individual files and input filenames to create a PlanarImage

PlanarImage img = JAI.create("fileload", filename);

which is wrong as it throws

Exception in thread "main" java.lang.IllegalArgumentException: File not found

I tried using ParameterBlock also, but i don't seem to get it right and its not reading the image files.

Can someone suggest some tips to perform the task of processing images inside a directory with JAI.create..

Thanks

[594 byte] By [max_nya] at [2007-11-27 10:50:23]
# 1

looks like the problem is the file path .. i am reading file from driectory but i am passing only the filename.. and JAI.create function can't seem to find it..

updating code now.. cheers

max_nya at 2007-7-29 11:24:59 > top of Java-index,Security,Cryptography...
# 2

ok, problem sorted :))

traversing directory and getting filenames

PlanarImage img = JAI.create("fileload", pathName+children);

small things matter most sometimes :))

cheers all

max_nya at 2007-7-29 11:24:59 > top of Java-index,Security,Cryptography...