If you want to upload an image to sap through your android you have to do the following steps:
First of all you have to use the operation which is known to be as CREATE operation, this operation will help you for your BAPI , which will further pass your image in that, as soon as you generate the create operation you will easily get your BAPI import consideration, this further means that you need not to generate a personalization key and even you don’t need to map them further, As soon as you created the code you have to check your created class your MBO, later you will find the BAPI import module as quality of class, for this you have to set the value for the image, whenever this process is done you.
Store Data in SAP System
After then if you want to store the data in SAP system you have to undergo the following steps:
- First of all you have to generate one BAPI using the input parameter type XSTRING and generate its MBO.
- As soon as you click any image and then convert that bitmap image to BASE64 encoded string and whenever the process is done you have to send that string MBO’s.
- Now you have to write down the logic for decoding it into xstring in your BAPI and after that you have to save it to raw string format in database.
Hope this article might help you