Solved

download files with NMHTTP

Posted on 2002-06-30
3
720 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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 demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

771 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

7 Experts available now in Live!

Get 1:1 Help Now