Hi Danijel,
I have created a web server using a TRtcHTTPServer component and TRtcDataProvider components.
In a web browser, users are able to right click on a link and download a text file. This works fine.
The code I used is:
with Sender as TRtcDataServer do
begin
if Request.Complete then
begin
FConfigFile := CONFIG_FOLDER + CONFIG_FILENAME;
if FileExists(FConfigFile) then
begin
Write(Read_File(FConfigFile));
end;
end;
end;
I also want users to be able to download a binary file. I have tried a few different ways but the file doesn't download.
What is the correct method for downloading binary files?
Thanks.
= Steve