Re: Outputstream with PDF from FOP is going cutted
"Steiner, Priska" <[EMAIL PROTECTED]> wrote: > I have a strange problem. I tried to generate with Fop0.20.2 a pdf. I would > like for output an outputStream instead of a fileOutputStream. This works > fine, but when I tried to insert this Stream as a byte[] in a DB, the > content will be cutted. PDF may contain characters which DBs usually deem to be illegal in text fields (CHAR or VARCHAR), most notably ASCII NUL (U+). Try to store the PDF in as BLOB. Notepad will also truncate data copied from the clipboard at NUL characters. HTH J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: AW: Outputstream with PDF from FOP is going cutted
It looks like you have some illegal character in your String. At least, illegal from the point of view of the code that reads/uses this String. What plateform/encoding do you use ? You said you want to put the binary date into a DB field. Do you use some outpustream that can hold these bytes ? My last comment wil be : This doesn't look like a Fop question but rather like a Java Byte Stream issue. I hope this helps Cyril At 09:11 06/03/2002 +0100, you wrote: >Thanks for your answer, but that doesn't help. The same problem I have, when >I give >up this outputStream to the console. There it seems to be uncutted, but when >I mark >the whole String and copy it in the notepad, it will be cutted. > >Regards >Priska - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
AW: Outputstream with PDF from FOP is going cutted
Thanks for your answer, but that doesn't help. The same problem I have, when I give up this outputStream to the console. There it seems to be uncutted, but when I mark the whole String and copy it in the notepad, it will be cutted. Regards Priska -Ursprüngliche Nachricht- Von: Jeremias Maerki [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 6. März 2002 08:47 An: [EMAIL PROTECTED] Betreff: Re: Outputstream with PDF from FOP is going cutted Maybe you don't flush() (and close()) the OutputStream at the end. > I have a strange problem. I tried to generate with Fop0.20.2 a pdf. I would > like for output an outputStream instead of a fileOutputStream. This works > fine, but when I tried to insert this Stream as a byte[] in a DB, the > content will be cutted. > It seems not to be a bufferproblem in the DBDriver, its every time an other > length who rests. > Can anyone help me ? Cheers, Jeremias Märki mailto:[EMAIL PROTECTED] OUTLINE AG Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern Tel. +41 41 317 2020 - Fax +41 41 317 2029 Internet http://www.outline.ch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Outputstream with PDF from FOP is going cutted
Maybe you don't flush() (and close()) the OutputStream at the end. > I have a strange problem. I tried to generate with Fop0.20.2 a pdf. I would > like for output an outputStream instead of a fileOutputStream. This works > fine, but when I tried to insert this Stream as a byte[] in a DB, the > content will be cutted. > It seems not to be a bufferproblem in the DBDriver, its every time an other > length who rests. > Can anyone help me ? Cheers, Jeremias Märki mailto:[EMAIL PROTECTED] OUTLINE AG Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern Tel. +41 41 317 2020 - Fax +41 41 317 2029 Internet http://www.outline.ch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Outputstream with PDF from FOP is going cutted
Hello I have a strange problem. I tried to generate with Fop0.20.2 a pdf. I would like for output an outputStream instead of a fileOutputStream. This works fine, but when I tried to insert this Stream as a byte[] in a DB, the content will be cutted. It seems not to be a bufferproblem in the DBDriver, its every time an other length who rests. Can anyone help me ? Regards Priska - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]