nkuebelbeck
VIP Member
I'm trying to use jdeBufferUncompress in 9.2.1.2 tools to extract the blob field to the C:\ drive as proof of concept from my full client.
Attached is the code I'm working with from Brian's example for extracting xml from F98630. I swapped out the call of xmlpUncompress with jdeBufferUncompress but it's crashing object browser when i execute it. I did some debugging and I believe jdeBufferUncompress is returning a -3?
The file is written the F98MODAT with the correct filename so I know I've hit the database correctly. It's just 0 bytes.
I searched the source directory for jde objects using jdeBufferUncompress and there were zero.
Thanks in advance for any help
SOLUTION
couple things. need to open file with the wb switch. I also used jdeFwrite. Thanks craig for revealing the uncompressed nature of the data
stream = jdeFopen(szFileName, _J("wb"));
nReturn = jdeFwrite(dsF98MODAT.zutxft.lpValue, dsF98MODAT.zutxft.lSize, 1, stream);
Attached is the code I'm working with from Brian's example for extracting xml from F98630. I swapped out the call of xmlpUncompress with jdeBufferUncompress but it's crashing object browser when i execute it. I did some debugging and I believe jdeBufferUncompress is returning a -3?
The file is written the F98MODAT with the correct filename so I know I've hit the database correctly. It's just 0 bytes.
I searched the source directory for jde objects using jdeBufferUncompress and there were zero.
Thanks in advance for any help
SOLUTION
couple things. need to open file with the wb switch. I also used jdeFwrite. Thanks craig for revealing the uncompressed nature of the data
stream = jdeFopen(szFileName, _J("wb"));
nReturn = jdeFwrite(dsF98MODAT.zutxft.lpValue, dsF98MODAT.zutxft.lSize, 1, stream);
Attachments
Last edited: