Is there any way to force a DataSnap REST TStream method to respond as content stream instead of a JSON Array in Network, Cloud and Web Posted May 30, 2022 · Edited May 30, 2022 by RyszardK Hello. I have a DataSpan application written in Delphi 10. Right now I want to migrate to Delphi 11.1. Certain REST methods returning files as TStream. New version in Delphi 11 the stream response format in JSON Array. I can get a content stream with a client-side parameter like this: http://host:port/datasnap/rest/[Class]/[Method]/?json=false But is there a way for the DataSnap application in Delphi 11 to return the result as stream by default. The application is used by many external clients and I see a problem with modifying all their REST queries to the server. Thank you in advance for your help. 1
Is there any way to force a DataSnap REST TStream method to respond as content stream instead of a JSON Array
in Network, Cloud and Web
Posted · Edited by RyszardK
Hello.
I have a DataSpan application written in Delphi 10. Right now I want to migrate to Delphi 11.1.
Certain REST methods returning files as TStream.
New version in Delphi 11 the stream response format in JSON Array.
I can get a content stream with a client-side parameter like this:
http://host:port/datasnap/rest/[Class]/[Method]/?json=false
But is there a way for the DataSnap application in Delphi 11 to return the result as stream by default.
The application is used by many external clients and I see a problem with modifying all their REST queries to the server.
Thank you in advance for your help.