Skip to Main Content

APEX

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!

Unzip byte array stored in a database column

lijNov 20 2014 — edited Nov 23 2014

Dear All

We created a webservice in Oracle apex to download files using wsdl provided to us. The webservice will return filecontent as byte arrays.  We are storing the output in a clob database column. Then using UTL_ENCODE.base64_decode(UTL_RAW.cast_to_raw utility we are converting the filecontent to original xml file format and then creating an xml file in the specified directory created by us. This much is working fine.

Our issue is somethimes webservice returns zipped filecontent instead of original content. This case we need to get the original content from zipped content  and then create files based on original content. We are not successful in getting the original content.

Can you suggest any method to accomplish this. I tried utl_compress.lz_uncompress built -in procedure. But this is throwing ORA-29294: A data error occurred during compression or uncompression.

Thanks

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 21 2014
Added on Nov 20 2014
2 comments
349 views