#1 2023-03-24 18:39:02

Daniel_Andrascik
Member
Registered: 2013-07-11
Posts: 9

Transfer binary files from HTTP Rest server

Hello

I am newbie in REST servers and HTTP protocol.

I use TRestServerFullMemory a TRestHttpClient in WEBSOCKETS_DEFAULT_MODE. From time to time I would also need to transfer a binary file with a size from 10MB to 50MB. What is the best option for a Rest server like this? It is reasonable? I would prefer to use http communication and an allowed port (customer security policy).

Best regards

Offline

#2 2023-03-24 19:19:56

Daniel_Andrascik
Member
Registered: 2013-07-11
Posts: 9

Re: Transfer binary files from HTTP Rest server

For now i use only Interface based services...

Offline

#3 2023-03-24 19:27:26

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: Transfer binary files from HTTP Rest server

50MB is just fine with today's standard.

Offline

#4 2023-03-25 11:22:05

Daniel_Andrascik
Member
Registered: 2013-07-11
Posts: 9

Re: Transfer binary files from HTTP Rest server

This means that I can use the StringFromFile function and transfer the binary file as a RawByteString without any worries

Offline

Board footer

Powered by FluxBB