http REST w/an application/octet-stream response - Forum - OpenEdge Development - Progress Community

http REST w/an application/octet-stream response

 Forum

http REST w/an application/octet-stream response

This question is not answered

I have a use-case where I'm sending an REST call to a server to generate a PDF document.

The document is returned in streaming format as an application/octet-stream. 

The "entity" class appears to hold that response in an OpenEdge.Core.ByteBucket instance.

I haven't found any documentation on the ByteBucket class which leads to me asking here - is there a way to get the data out of that instance and into a PDF file? 

All Replies