Dear Developers,
Please provide guidance on the issue I'm encountering in my project.
I have a .pdf file that has been compressed with zip.exe and stored in a table as a blob.
I need to extract this file in PowerBuilder 2022 R2 using the 'Extract' function to retrieve the original .pdf file, but I have encountered difficulties.
Code used to extract the file:
ExtractorObject lnv_extractor
Integer li_return
blob lb_source, lb_extract
String ls_msg
//
lb_source=ab_compress_blob_data
lnv_extractor = create ExtractorObject
li_return = lnv_extractor.extract (ab_compress_blob_data, lb_extract, ArchiveFormatZIP!)
The 'li_return' is returning as 1, and the file is being created. However, upon attempting to open it, the following message is encountered:
"Adobe Reader could not open 'test.pdf' because it is either not a support file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded)."
Thanks in advance,
Sajith Prasannan