Solved

download files with NMHTTP

Posted on 2002-06-30
3
724 Views
Last Modified: 2008-02-07
Can someone show me how I can use NMHTTP to download files (exe,avi whatever ..) from a given server and write it to my harddrive.

I know how I can use NMHTTP to open htm files and other text files, but I really need to be able to get non-text files like programs and such, too.

Preferably like "Save target as" in IE does, brings up a save-dialog and so on.

How?
0
Comment
Question by:hagur
3 Comments
 
LVL 44

Accepted Solution

by:
bruintje earned 75 total points
ID: 7120669
Hi hagur,

you could try this put the component on your form and these lines

NMHTTP1.Body:=DownLoadDir+'\myfile.dat'; //local download directory
NMHTTP1.InputFileMode:=True; //receive files
NMHTTP1.Get('http://www.somewhere.com/data/myfile.dat'); //file to download

HAGD:O)Bruintje
0
 
LVL 3

Expert Comment

by:VSF
ID: 7120680
BRAZIL 5 times WorldCup Champion!

Congratulations too to all Brazilian Experts and those that beleived we would be world's number one (one more time).

Victory Fernandes, a proud Brazilian!
www.victory.hpg.com.br
0
 
LVL 3

Author Comment

by:hagur
ID: 7121707
Thanks bruintje, this worked flawlessly!

VSF, congrats on the world championship title.
I watched the game live here in Iceland and it was a good game.  Brazil deserved the victory, even though the Germans were also quite good.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now