Skip to Main Content

SQL & PL/SQL

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!

base64 encoding&decoding

533611Feb 1 2007 — edited Feb 2 2007
Hi, i need to do this: 1) encode some pdf file with base64 algorithm 2) put the resulting - ascii ? - file into some XML tag and finally 3) decode this data back to obtain the original pdf file.

I tried to use utl_encode's package procedures base64_encode/decode but in vain (maybe due to my scarse experience). The problem is (i believe) in the last step because i start from a 70 KB pdf file and after encoding it becomes 100 KB (ok this is foreseeable) but when decoding i obtain a 50 KB file... (sort of truncation occured, because Acrobat Reader can read it for a while, then raise un error).

Is there a known issue for this problem? Someone can help or suggest?
Thank you, best regards
Massimo
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 2 2007
Added on Feb 1 2007
2 comments
475 views