|
This is a multi-part message in MIME format. -- [ Picked text/plain from multipart/alternative ] Hi all, We have data in a file stored in a binary capable VARCHAR field (CCSID 65535). This is ASCII data compressed with a GZIP in java. If I retrieve and unzip this data in java program it works just fine. When I try to do the same thing in RPG it gives me an error Message . . . . : Java exception received when calling Java method. Cause . . . . . : RPG procedure UNZIPSTR in program UNZIPSTR/OLEG received Java exception "java.io.IOException: Not in GZIP format" when calling method "<ini" with signature "" in class "java.util.zip.GZIPInputStream". H THREAD(*SERIALIZE) H OPTION(*SRCSTMT: *NODEBUGIO) * D parmString S 9957 VARYING D stream S O Class(*JAVA: D 'java.util.zip.GZIPInputStream') D makeStream PR O ExtProc(*JAVA: D 'java.io.ByteArrayInputStream': D *Constructor) D 10000 CONST VARYING * Create GZip input stream D makeGZStream PR O ExtProc(*JAVA: D 'java.util.zip.GZIPInputStream': D *Constructor) D O CLASS(*JAVA: D 'java.io.InputStream') D CONST C *ENTRY PLIST C PARM parmString * /Free stream = makeGZStream(makeStream(parmString)); // the rest of the code....... *InLr = *On; /End-Free Can somebody tell me what I'm doing wrong? The information transmitted by the following E-Mail is intended only for the addressee and may contain confidential and/or privileged material. Any interception, review, retransmission, dissemination, or other use, or taking any action upon this information by persons or entities other than the intended recipient is prohibited by law and may subject them to criminal or civil liability. If you received this communication in error, please contact us immediately at 954-730-2900 ext. 7400 and delete the communication from any computer or network system. --
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.