Article View: borland.public.cppbuilder.internet.socket
Article #1458Re: Help with FTP Component using Indy 9 with BCB 2006!
From: Carl Danley
Date: Wed, 24 Jan 2007 21:31
Date: Wed, 24 Jan 2007 21:31
20 lines
1955 bytes
1955 bytes
Nevermind, I have figured it out... Apparently you just use the "Put()" function... It was very easy, I just overlooked the functions.... Example - TIdFTP1->Put(<local file>, ExtractFileName(OpenDialog1->FileName)); "Carl Danley" <cdanley@codebyter.com> wrote in message news:45b7c917@newsgroups.borland.com... >I need some help with some scripting in reference to uploading a file with >the TIdFTP component... I am not sure as to how to upload the file >programmatically... I dont know how to use a file stream and I need help >with this topic... I remember in BCB 4.0 that there was a Upload function >that was something like: "FTP->Upload(<File Location> , <File Name>);" >Could someone possibly write a sample piece of code to upload a file that a >user selected from an OpenDialog component??? It would be much appreciated! >For your info, I am using the latest version of Borland Developer Studio >2006 and I am using Borland C++ Builder 2006 with Indy 9 to program... > > Thank you, > Carl >
Technical Details
Message-ID:
<45b7cff4$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<45b7c917@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,42874b3acbbae875 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Carl Danley" <cdanley@codebyter.com> From: "Carl Danley" <cdanley@codebyter.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <45b7c917@newsgroups.borland.com> Subject: Re: Help with FTP Component using Indy 9 with BCB 2006! Date: Wed, 24 Jan 2007 16:31:09 -0500 Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 NNTP-Posting-Host: 68.233.59.189 Message-ID: <45b7cff4$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1169674228 68.233.59.189 (24 Jan 2007 13:30:28 -0800) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail