With the following code-snippet I get an IllegalArgumentException (Invalid
ICC Profile Data) in the method "getInstance" of the class "ICC_Profile". So
what can I do?

                                RandomAccessFile rf = new 
RandomAccessFile(pathToFile, "r");
                                int size = (int) rf.length();
                                byte imext[] = new byte[size];
                                rf.readFully(imext);
                                rf.close();

                                Image img1 = Image.getInstance(imext);

Yours sincerly
Joachim Sieglen
-- 
View this message in context: 
http://www.nabble.com/Problems-using-the-Image-class-tp19567754p19567754.html
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to