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

Attachment

Hi All,

I am getting attachment from Mobile device it is in the form of byt string ( Actually Mobile device scan the Images and converting in to byt formate ), so from Back end side I have to captyure that Formate and I have to convert it again in to Image formate and store the data in to database.

Thanks&regds,

Srinivas.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 12:26 PM

    Hi,

    well, I am a little lost here - what is your problem here?

    I tis correct that MI has no possibility to send large attachments as such. If you want to send an image for example, you have to read it as BYTE stream, split it into chunks of 250Chars, store thiese chars into an Text field of an item of the syncBO and then send it to the backend.

    There you take these items, read them properly and rebuild the image out of the single items. Then you save it and all is fine.

    Was there an issue on your side with that procedure?

    Regards,

    Oliver

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Larissa,

      your answer is confusing compared to my answer - even it is correct as such, but it is exactly what I explained above.

      The Byte stream has to be converted into chunks first - it is clear that this is done on the client as I descibed above. And then - because it is a Upload SyncBO - it is as well clear, that in the backend there is a CREATE BAPI handler.

      So your answer is correct, that MAM30_080_CREATE badi is the one in the backend, that converts BYTE stream back to image.

      The only part that I am not so happy with is the beginning of your answer. Because the syncBO MAM30_080 transfers the signature image, the CREATE BADI is a part of the syncBO - or am I wrong here?

      So in my understanding: client splits image into chunks - badi puts chunks back to image and one end can not life without the other.

      So in my understanding it would be better to say:

      To convert MAM30_080 data back into an image, have a look into the BAPI MAM30_080 create........ in that case it is not that confusing for the reader if he is new in that area.

      Regards,

      Oliver

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.