Hello everybody,
I'm currently having an issue with uploading files via SAP Netweaver Gateway.
What I'm trying to do is to capture a video and sending it to SAP Gateway. I'm coding in JAVA and I'm using the odata4j-Framework for consuming and producing OData. My current tries involved to encode the video to a base64-String and sending the string to the gateway... The encoding of the video works quite fine but the prolbem is that the string is really veeeeeeeeery huge ... Everytime when I'm trying to make the request I receive a "OutOfMemoryException".
Is there actually a way with which I'm able to send a video file with odata4j to the SAP Netweaver Gateway??? I'm really looking forward to your help!!!
Greetings
Stefan
Hi Stefan,
Even I also facing the same issue with data size limit while uploading MP4 files..We can expect answers from GW Experts.
Thanks,
Syam
Hello Stefan,
Set your entity as Media Type.
You need not to convert to any type of string format and send to GW.
All you need to do is attach the files in GW Client and fire the service which will intern call Create_Stream method.
Inside this method you need to write the logic which will save your files in the appropriate format in back-end.
Regards,
Ashwin
Hi and thanks a lot for your quick replies! The questions which I have right now is how to send the video. I get it as a mp4 file and I'm using odata4j. The framework itself provides a methode "createEntity" with all the properties I declare in the GW. My guess is as I already mentioned that the string is too big --> I need to send the video directly, but how can I make this?
Looking forward to your answers!
Greetings
Stef
Hi,
here's a short news update... I still haven't found a solution for sending the video to the gateway ... maybe someone knows something?
Greetings
Add a comment