Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

record wav message then ftp

Status
Not open for further replies.

elck

Programmer
Apr 19, 2004
176
NL
I need to write a little prog in Delphi 7 that:

1. records a small .wav file
(setting quality to low and mono)
2. ftp the resulting file to my website

I have no experience with delphi (I am a VB PHP and assembly programmer)
Can anyone get me started here please?
 
For recording the .wav file, go to the search page for the Delphi Super pages at Enter WAV and click on Delphi 7. You'll get a list of components that can be used to record .wav files.

For FTP, I don't work in Delphi 7, so I'm not sure what's there, but there should be an FTP component available in the default Delphi install.

-Dell
 
FTP:
In Indy Clients you can find component: TIdFTP. Put it on the form, set its properties:

Host : the hostName (example: ftp.tecservice.com)
UserName : userID for host
Password : password for Host
TransferType : ftBinary

put a button on the form and type your code in it's onClick event:

Code:
procedure Tfdw.Button1Click(Sender: TObject);
begin
  ftp1.Connect();
  ftp1.Get('/FtpFolder/FileNAme.withExtension',
  'c:\YourLocalForlder\LocalFileName.extension',true,false);
  ftp1.Disconnect;
end;

The last two flags means:
the first one: canOverwrite
the second one: Resume.

You can use 'get' for download and 'put' for upload

Hope this can help you
Giovanni Caramia
 
Thanks guys, sounds great
I will try that as soon as I have got rid of a virus I got downloading a soundrecorder from the net!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top