hello all, i have a big problem with writing a bytearray to an oracle db and display it via a servlet i have a function to generate a pdf with the pdflib
then i want to store the bytebuffer = pdf.get_buffer(); into an oracle database with this script:
when i then try to display the result with this servlet then i get no pdf file displayed
has anybody an idea where my error is ? tia andreas spiessl
hello rene, hello all i have tried it with the code and no pdf file is displayed. i have test my loading servlet with the database an i function, so now i think the error must be in
has anybody an idea tia andreas spiessl [ June 19, 2002: Message edited by: andreas spiessl ]
Could you insert the pdf files in the database successfully? Try to get the size of the blob and match it with the actual file and make sure that it is loaded properly. What version of adobe acrobat are you using? I had several problems displaying the pdf files on the browser, especially with some versions of IE. Have you tried to refresh the browser? I am using bfiles instead of blob to store the pdf files. If you like I can give my code to display the pdf files in the browser. Regards Beksy [ June 19, 2002: Message edited by: Beksy Kurian ]
I do not use the Oracle Blob (getBLOB() is from Oracle and getBlob() is standard) and OracleResultSet, but the one from the standard JDBC API /Rene [ June 19, 2002: Message edited by: Rene Larsen ]
hello beksy, i am using ie 4/5 and acrobat 5. the insert doesn't work correctly, (maybe the pdflib get_buffer function has an error) i don't know where my error is ... i would be nice if i can have a look at your code for insert and displying pdf files tia andreas spiessl [ June 19, 2002: Message edited by: andreas spiessl ]