andrea-magni / MARS

MARS-Curiosity Delphi REST Library
Mozilla Public License 2.0
362 stars 113 forks source link

GET method to upload a file #121

Closed ertankucukoglu closed 2 years ago

ertankucukoglu commented 2 years ago

Hello,

There is this bulk json data that I would like to squeeze in a ZIP file for reducing internet transfer times.

I can prepare json, write it in a file, compress and make a ZIP file, but failed to upload that file in a GET method. What I am after is to send BYTE data to client.

Any help is appreciated.

Thanks & Regards, Ertan

bobprog72 commented 2 years ago

Hi Ertan, look at ContentType demo. There are "GetStream" and "GetStreamAsAttachment" functions.

Regards. Bob

ertankucukoglu commented 2 years ago

That was it. I didn't try TStream obviously. And some headers of course.

Thanks for pointing me to right demo project and function(s) in it.