ClementDoss
|
|
« on: September 09, 2017, 08:02:46 PM » |
|
Hi,
I will start a new project where my rtcServer will handle REST requests (JSON). My customer wants to receive registration data (Name, document, address, etc ) and might get also some files (TXT, PDF, JPGs, DOC, XLS, etc ). Those files can easily get over 10 MBytes. I googled and some say everything should come in a single POST. But I believe it would be better to have a POST for registration data that returns an ID that can be used in a second POST to upload the required files. Anyway, this API will be called from other applications (no browser as far as I know) written in other languages (even SAP). What would be the best to achieve max performance and responsiveness ? Those files will be part of an analysis. To that end my customer's team will need to download them. In that scenario, would it best to store those files in the File system, or Database BLOB (NexusDB).
I build several RTC REST application with server and client written in Delphi, but I have no experience writting a rtcServer that will receive files from a POST made from another language. Is there any difference? Any sample code that might help would be great.
Best regards, Clément
|