cancel
Showing results for 
Search instead for 
Did you mean: 

Binary data in front end getting converted to Hexadecimal at backend

sid_sunny
Contributor
0 Kudos

Hi All,

In a Web Dynpro application i have some binary data of about 35 KB and when i am sending this data to the R3 backend database the first 3 bytes are getting lost because of which my pdf could be regenerated as i get a error <b>%PDF-</b> missing.

can somebody help

We are using <b>BAPICONTENT255-LINE</b> as datatype in the backend to store the binary content coming from front end

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Siddharth,

try tu use


byte[] binaryFile = null;
StringBuffer x = new StringBuffer();
x = "....";
String file = new String();
file = x.toString();
binaryFile = file.getBytes("UTF-8");

Hope this help you.

Regards.

Gianluca Barile