R
R
Romanson2016-04-02 09:27:47
Delphi
Romanson, 2016-04-02 09:27:47

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 eee5ed9a072f47bc9e32be2891092cbb.png
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

1 answer(s)
G
Grand Silence, 2016-04-02
@Romanson

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 question

Ask a Question

731 491 924 answers to any question