Adam, your image is a JPEG. iText handles it just fine. If you treat it as a 
JPEG, I think you'll be OK.

Best regards,
Bill Segraves



----- Original Message ----
From: Adam Mork <ad...@windward.net>
To: "itext-questions@lists.sourceforge.net" 
<itext-questions@lists.sourceforge.net>
Sent: Mon, August 23, 2010 8:50:20 AM
Subject: [iText-questions] Error reading TIFF Image

Hi,

I get this error when trying to read a TIFF Image, is anyone familiar with this 
exception and how to fix the image files ? 


Here is a link to the image - 
http://sites.google.com/site/windwardapps/xml/Fidelity.tif

Exception: Source array type cannot be assigned to destination array 
type.

Stack: at System.Array.Copy(Array sourceArray, Int32 sourceIndex, 
Array destinationArray, Int32 destinationIndex, Int32 length, Boolean 
reliable)

at iTextSharp.text.pdf.RandomAccessFileOrArray.Read(Byte[] b, Int32 
off, Int32 len)

at iTextSharp.text.pdf.RandomAccessFileOrArray.ReadFully(Byte[] b, 
Int32 off, Int32 len)

at 
iTextSharp.text.pdf.codec.TIFFDirectory.Initialize(RandomAccessFileOrArr 
ay stream)

at 
iTextSharp.text.pdf.codec.TIFFDirectory..ctor(RandomAccessFileOrArray 
stream, Int32 directory)

at 
iTextSharp.text.pdf.codec.TiffImage.GetTiffImage(RandomAccessFileOrArray 
s, Int32 page, Boolean direct)

at iTextSharp.text.Image.GetInstance(Byte[] imgb)

thanks
Adam M
------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to