Closed Zettersten closed 3 years ago
Lets say I fetch an image using the Bing Image Search API.
It'll give me the raw stream of the image along with its content-type.
How can I turn that stream into a valid response using the HttpResponseData object?
Since "body" is the only property available and its a string, I have no idea what to do...
Problem solved.
Return a byte array and not HttpResponseData.
How are the proper content-type headers set, then?
Lets say I fetch an image using the Bing Image Search API.
It'll give me the raw stream of the image along with its content-type.
How can I turn that stream into a valid response using the HttpResponseData object?
Since "body" is the only property available and its a string, I have no idea what to do...