> HI,
Please refrain from multi-posting in future.
(X-post to c.l.j.h./c.l.j.p./s.i.p., w/ f-u to c.l.j.h. only)
Andrew T.
> When I googled I found the following informations:-
> 1)from sun's bug database:-
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6247985
This is irrelevant. It is about IllegalArgumentException.
> 2)from SUN Developer Forums
>
> http://forum.java.sun.com/thread.jspa?threadID=768917&messageID=4382833
This gives the correct explanation. You don't have write access to that
file or directory. Maybe it is open?
> 3)from Java.NET forum(here they r getting the bug while they r using
> createScreenCapture() method of robot class,I am also using that in my
> code)
> http://forums.java.net/jive/thread.jspa?messageID=123247
This repeats the same explanation.
> 4)from SUN's archieve
> http://archives.java.sun.com/cgi-bin/wa?A2=ind0207&L=java-imageio-interest&D=0&P=1483
This is irrelevant. It is about resolution.
> 5)Here is the actual implemetation of ImageIO class.I'm getting error
> at 391 no. line.
> http://kickjava.com/src/javax/imageio/ImageIO.java.htm
No, this is the GNU version, which I sincerely hope you aren't using,
and obviously line 391 of this source code has nothing to do with your
problem, which is completely defined by your original exception.
> ============================================================================================
> Now I tried the following alterntive form jdk 1.2
> to read:-
This isn't an 'alternative', this is reading an image instead of writing
it: aompletely different issue and a completely different problem. In
this case you are being told that the input file is corrupt.
What a lot of confusion over nothing.