Hello,
is there a possibility to assign a content-type to the response of an xdata service. When I have the response type of TStream the result can be totally different:
json
jpg
pdf
and the browsers that I use cannot handle the response correctly if there is no content-type.
Regards
Harald
1 Like
Yes, just set it using the Response object:
TXDataOperationContext.Current.Response.Headers.SetValue('content-type', 'text/plain');
Hello Wagner,
great support as always! It works perfectly.
Thanks a lot
Harald