Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3116

Getting Pictures with batch

$
0
0

Dear Experts!

 

I try to get for an entityset all images from my backend system via odata service.

The single get_entity works without problems. I tried to get for a entityset to get the images, but this does not work. I think this is actually not supported. So i have the idea to use a batch functionality to get for selected i materials in my ui5 application the images.

But actually i get the batch request not working.

In the header of my request, i set as content type "image/png;boundary=batch_zmybatch"

My body looks like this.

--batch_zmybatch

Content-Type: image/png

Content-Transfer-Encoding: binary

 

GET PicturesSet(Matnr='000000000100013301',Type='t')/$value HTTP/1.1


--batch_zmybatch--



My response is http rc 415: The server is refusing to process the request because the entity has an unsupported format


I don´t know exactly what i am doing wrong.



If i use a batch to get an entity for materials:

--batch_zmybatch
Content-Type: application/http
Content-Transfer-Encoding: binary

GET MaterialSet(
'000000000100012001') HTTP/1.1


--batch_zmybatch--


this works without problems. So i think with the images, i have a problem here.

Does anybody of you have an idea how to get the images by batch?


Regards!


Barney





Viewing all articles
Browse latest Browse all 3116

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>