Skip to Content
author's profile photo Former Member
Former Member

Mapping of input Stream data onto a file at respective fields

Hi,

Can Anyone provide me info regarding how to Map (Using Java Mapping) a Huge amount of Incoming Arrays of Data from an IDOC onto a File in its Specified Fields?. If Possible provide me some examples.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Sep 03, 2009 at 07:30 PM

    Hi,

    If I understood your question correctly then you want to store the incoming file (binary data) into MDM Binary Objects or some other table. This can be done easily using the Java API.

    For example, if you want to save file XYZ.dat in MDM, then you need to read the file and create a byte array or InputStream. Now once you have the file in binary format, you can use BinaryBlobRecord to create a record of that type and assign the binary value that you have in the byte array. After this you need to use CreateRecordCommand to create the record by passing the BinaryBlob Object.

    Hope this helps!!

    Cheers,

    Arafat

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.