on 01-28-2014 8:11 AM
Hi everybody,
I try to create an application which should be able to take a picture and afterwards upload it to a SAP System. I can already make a picture and safe it in my application. The path to the image is always something like this:
file:///storage/sdcard0/Android/data/MYPACKAGE/cache/1390895377066.jpg
My application has a simple synchronize button and everytime when you press this button all the changed data (including my picture) should go to the SAP System. Just for your information: Im developing with Cordova on an Android Device. The picture is made through the following code:
navigator.camera.getPicture(onPhotoSuccess, onPhotoError, {
quality: 50,
destinationType: Camera.DestinationType.FILE_URI,
sourceType: Camera.PictureSourceType.Camera
});
Does anybody know how it is possible to take the picture and deliver it to the system? Looking forward to your answers!
Greetings
Stef
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi again,
I have a small news update for you. I was able to send the base64 code to the SAP system. What I want to achieve now is to save the image as an attachement for a special notification. SAP allows to save images and other attachement as a "Service for Object". I know that notifications etc. are saved in the table "QMEL". Is there now a special association? How am I able to save it as a "Service for Object"? Has anybody of you done this before? Looking forward to your answers. Greetings!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi again,
I read something about building a RFC which takes a xString as an import parameter. This xString should include the Base64 Code of the image afterwards.
It's no problem for me to get that Base64 Code. There is a special function for that which does it for me. The question that I have is how to call the RFC. Where does the RFC store the image? Really hope that you can help me solving this problem.
Greetings
Stef
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are right you need to keep the input of the RFC as Xstring. The ABAP developer can save the image in any server based on the requirement,ex.application server. If you are developing a cordova app you have to go with Odata services. You have option to create Odata service from RFC.
Some helpful links:
Convert images to base64 strings for HTML/CSS embedding
- Midhun VP
Well I understand that but the only thing what I want to do is to send the base64 code + the other data to the sap system. save the base64 code as img in the mime repository and create an entry in a database. oData only delivers me data doesn't it? If no, how would you make this oData service calll???
Looking forward to your answer
Greetings
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.