Jump to content
Sign in to follow this  
RyszardK

Is there any way to force a DataSnap REST TStream method to respond as content stream instead of a JSON Array

Recommended Posts

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.

Edited by RyszardK
  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×