Skip to Content
avatar image
Former Member

How can I convert the binary file content to XML message

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Mar 09, 2009 at 04:39 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • avatar image
    Former Member
    Mar 09, 2009 at 04:56 AM

    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-91c40ee56c0b

    Refer to link

    binary-file-to-xml-string

    your question is answered over there.

    Rgds

    joel

    Add comment
    10|10000 characters needed characters exceeded