cancel
Showing results for 
Search instead for 
Did you mean: 

JCO Call to Unicode R3 System

Former Member
0 Kudos

Hi,

I'm trying to get the data from SAP and save it as a PDF file.I'm able to get the data by using the below code but i'm not able to get the image data which is comingalong with the data coming from SAP

My code goes as follows:


stringReader = new StringReader(new String(tabList.getString("ZLINE").getBytes("UTF-16LE")));
int charInt;
while ((charInt = stringReader.read()) != -1)
       pwriter.write(charInt);

With this code as i said i'm able to generate the PDF file from the unicode data coming from SAP but i'm not able to process the image data ..

Please help me in this regard

Thanks in advance

Satya

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Has anyone tried out reading the data coming from unicode R3 system and generate the PDF.

I'm able to generate the PDF but getting problem while reading the image data.

posted the code in my earlier post.

I'm reading the data from table by using getString method present in the JCO.Table and getting the bytes using the UTF-16LE codeset.everything is fine but not able to read the image data.

Can anyone help me in this regard