Skip to Content
0
Former Member
Apr 18, 2010 at 08:45 PM

MI 7.1 Custom client attachments synchronization

19 Views

Hi All,

I have a custom mobile client for SAP MI 7.1 and I'm synchronizing a data object that contains attachment.

This attachment file (binary) is coming in GET message as a string (described as SAP data type RSTR).

My question is: how should I convert this rawstring message content to a valid binary file in Java?

When I convert the String directly to byte[] array and save to file, it is always corrupted.

Can anyone help, please?

Kind regards,

Piotr