Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

about "Upload and download files from ADF into blob type colum."

Jan VerveckenJan 5 2008 — edited Jan 11 2008
hi

Using JDeveloper 10.1.3.3.0 I have tried the example available for download from this blog post by Jakub Pawlowski:
"Upload and download files from ADF into blob type colum."
at http://kuba.zilp.pl/?id=1

First a thank you to Jakub for this interesting example.

I have a question about a PDF file that I uploaded using the example.
The file has a size of 10445518 bytes.
After I upload that file, the blob column has a value with a size of 10445516 bytes, 2 bytes less.
SQL> select file_name, dbms_lob.getlength(stored_file) from blob_table;

FILE_NAME
-----------------------------------------------------------------------

DBMS_LOB.GETLENGTH(STORED_FILE)
-------------------------------
ADF-DeveloperGuide-4GL-B25947_01.pdf
                       10445516
If I download that file using the example, it has the same size as the blob value, 10445516 bytes.

If I open the downloaded file, using Adobe Reader 8.1.1, it first shows this message:
"The file is damaged but is being repaired."
After that, there is not problem using the PDF file in Adobe Reader.

I have tried this with both Internet Explorer 6 and Firefox 2.0.0.11.
I have also tried this with other (smaller) files, and those upload and download correctly.

question:
Why are those 2 bytes lost during upload?

many thanks
Jan Vervecken
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 8 2008
Added on Jan 5 2008
11 comments
5,258 views