Answer the question
In order to leave comments, you need to log in
Who will be able to prompt on IdHttp to load a file in Delphi?
Hello everyone, I'm trying to upload a file weighing more than 10 mb. The app is throwing an error
like this:
var
q :tmemorystream;
begin
q:=TMemoryStream.Create;
idhttp1.Get('http://rghost.ru/download/7lfzq6yJl/9e6e9a03ef10a153ff3647633897fca4f56126f4/9e6e9a03ef10a153ff3647633897fca4f56126f4/LesINFO.apk',q);
q.SaveToFile('C:\\22.apk');
Answer the question
In order to leave comments, you need to log in
That's right, you can't download a file from a direct link from RGHost (they did). You can go in incognito mode in a browser and paste the link into the URL, then press Enter - you will end up with a redirect, not a file. Use hosting with direct links, which actually give the file.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question