hi,
i'm trying to load a tiff file from oracle db .
Using the drawToWeb methode i found this error:
Errore server nell'applicazione '/MessWeb'.
--------------------------------------------------------------------------------
Lunghezza della matrice di destinazione insufficiente. Controllare destIndex, la lunghezza e i limiti inferiori della matrice.
Descrizione: Eccezione non gestita durante l'esecuzione della richiesta Web corrente. Per ulteriori informazioni sull'errore e sul suo punto di origine nel codice, vedere l'analisi dello stack.
Dettagli eccezione: System.ArgumentException: Lunghezza della matrice di destinazione insufficiente. Controllare destIndex, la lunghezza e i limiti inferiori della matrice.
Errore nel codice sorgente:
Riga 47:
Riga 48: // Save the PDF document
Riga 49: document.Draw(@"c:\inetpub\wwwroot\MessWeb\pp.pdf" );
Riga 50:
Riga 51: // Create a PDF Document
File sorgente: c:\inetpub\wwwroot\messweb\webform1.aspx.cs Riga: 49
Analisi dello stack:
[ArgumentException: Lunghezza della matrice di destinazione insufficiente. Controllare destIndex, la lunghezza e i limiti inferiori della matrice.]
System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length) +0
zz93a5..ctor(TiffImageData A_0, zz93b5 A_1)
ceTe.DynamicPDF.Imaging.TiffImageData.a()
ceTe.DynamicPDF.Imaging.TiffImageData.b()
ceTe.DynamicPDF.Imaging.TiffImageData.Draw(PageWriter writer, Single pdfX, Single pdfY, Single width, Single height)
ceTe.DynamicPDF.PageElements.BackgroundImage.Draw(PageWriter writer)
ceTe.DynamicPDF.PageElements.Group.Draw(PageWriter writer)
ceTe.DynamicPDF.Page.a(PageWriter A_0)
ceTe.DynamicPDF.Page.DrawEntries(DocumentWriter writer, Int32 pageNumber, Int32 sectionPageNumber)
ceTe.DynamicPDF.Page.a(DocumentWriter A_0, Int32 A_1, Int32 A_2, Int32 A_3)
zz93ba.d(Int32 A_0)
zz93ba.v()
ceTe.DynamicPDF.Document.Draw(String filePath)
Methode.Mba.Archivia.Web.WebForm1.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\messweb\webform1.aspx.cs:49
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750
--------------------------------------------------------------------------------
Informazioni di versione: Versione di Microsoft .NET Framework:1.1.4322.2032; Versione di ASP.NET:1.1.4322.2032
problem with byte[] tiff
Re: problem with byte[] tiff
Support · Apr 8, 2006Hello,
First, if you happen to be using v3.x, please make sure you have the latest build.
If you are using v4.0, this is likely happening because of a corrupt TIFF, or a problem with the way you are populating the byte array containing the TIFF.
Try saving the exact same byte array out to a file on your system and viewing it to see if it will view correctly.
Thanks,
ceTe Software Support Team
Re: problem with byte[] tiff
Forum member · Apr 8, 2006Hi,
I'm using v 4.
I've tried to open the file tiff with this code:
m_File = new FileStream(path + arc.Doc.Nome ,FileMode.Create ); m_File.Write(arc.Data,0,Convert.ToInt32(arc.Data.Length));
m_File.Close();
the file was ok.
using the arc.Data (byte[]) with pdf generator cause the error.
Can i post the tiff file to you? Where?
Thanks
Re: problem with byte[] tiff
Support · Apr 10, 2006Hello,
Can you please send us over the TIFF image file at [^a|mailto:support@cete.com|Support^], so that we can take a look at it?
Thanks,
ceTe Software Support Team
Re: problem with byte[] tiff
Support · Apr 20, 2006Hello,
The issue was with handling the transparency in tiffs and it has been resolved and the fix is available in v4.0.0 Build 60419 (and later) from our web site.
Thanks,
ceTe Software Support Team
Re: problem with byte[] tiff
Forum member · Oct 17, 2008I am also having a problem with tiff transparency. I am running build 4.0.3 for .NET Developer Edition. The error I am receiving is:
ceTe.DynamicPDF.Imaging.ImageParsingException: TIFF Transparency mask can not be drawn (unassociated data not present).
Re: problem with byte[] tiff
Support · Oct 17, 2008Hello,
Can you please send over the Tiff image with which you have a problem to our [^a|mailto:support@cete.com|Support Team^] so that they can look into it further.
Thanks,
ceTe Software Support Team.
Re: problem with byte[] tiff
Forum member · Aug 24, 2009Hi!
I know this is an old thread but I have the same problem. I'm using v 4.0.3.20 and I add the image like this
Dim MyImage As ceTe.DynamicPDF.PageElements.Image =
New ceTe.DynamicPDF.PageElements.Image(filename, xk, yk)
MyImage.ScaleX = scale
MyImage.ScaleY = scale
objPage.Elements.Add(MyImage)
and the code crashes when saving the pdf-file with:
objDoc.Draw(file)
Thank you for any help!
Johan
Re: problem with byte[] tiff
Support · Aug 24, 2009Hello Johan,
Can you please send over the Tiff image you are using in the Image constructor that is throwing the error to our [^a|mailto:support@cete.com|Support Team^] so that they can look into it further?
Also please send over the entire stack trace of the error message.
Thanks,
ceTe Softaware Support Team.