on 04-04-2016 6:13 PM
Hi All,
I have to pass multiple images of a material in my ODATA webservice . Right now I am able to pass a single image using $value in my GET_STREAM. Since GET_STREAM returns a structure as XML , I can't send multiple mime objects.
CALL METHOD copy_data_to_ref
EXPORTING
is_data = ls_mime
changing
cr_data = ER_STREAM
As far as $batch operation is concerned , as per my knowledge , it works only for POST request and not for GET.
Can anyone tell what will be the best way to achieve this??
Regards
Amber
.
Hello Amber,
You can use batch to read all those attachments if you have the information of all the images of the material before hand. If not then need to find some other way.
As far as i know i do not see direct way to send back all those images of a material in Get_Stream method.
Fro now one way which i can think of here is, implement GetEntitySet method and get all the binary content of the images for that material. Then on the UI use this content and try to render all those images.
Regards,
Ashwin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
GET is supported in $batch. So you can trigger multiple GET requests in a $batch and get one image each for each GET request.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.