cancel
Showing results for 
Search instead for 
Did you mean: 

How can I convert the binary file content to XML message

Former Member
0 Kudos

Dear friends,

I poll the binary file from a ftp server but the payload only includes the binary content, no XML structure in the payload, I hope to convert the binary content to a element node within the XML structure, how can I do that? via content conversion?

Thanks and regards,

Bean

Accepted Solutions (0)

Answers (2)

Answers (2)

JoelTrinidade
Active Contributor
0 Kudos

Hi Bean,

Please refer the guide named "XI Binary Conversion Simplified: A Step-by-Step Image File to Image File Mapping and Conversion Using Java Mapping."

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10dd67dd-a42b-2a10-2785-91c40ee5...

Refer to link

your question is answered over there.

Rgds

joel

former_member181985
Active Contributor
0 Kudos

Read the binary file stream using java I/O standard functions and convert the read stream to Base64 format. Now map this content to one of the field in target XML structure.

You need a java mapping for this.

what is your target system?

Thanks,

- Gujjeti.

Former Member
0 Kudos

Read the binary file stream using java I/O standard functions and convert the read stream to Base64 format. Now map this content to one of the field in target XML structure.

You need a java mapping for this.

what is your target system?

Thanks,

Gujjeti.

Hi Gujjeti,

Thanks a lot for your kind help, my target system is R/3.

Can I achieve that with a UDF or a simple way?

Regards,

Bean