What is the best method to send a large (<50MB) file from a PHP server (written in RADPHP) to a Delphi Datasnap server (Delphi XE). Because of the connectivity issues I would prefer to use HTTP(S) but this is new territory for me.
The PHP server accepts the file upload from the user's browser OK and can encode it (base_64). But a) that puts it into a string which can't be the best way to handle it b) the DataSnap server crashes with 'Max Line Length Exceeded' on receiving the string
The Datasnap server has 4 components - TDSServer, TDSServerClass, TDSHTTPService, and TDSAuthenticationManager. The RADPHP server uses a DSRestConnection component.