|
-
Aug 7th, 2007, 08:56 PM
#1
Thread Starter
New Member
[RESOLVED]FTP Download file to string
First attempt at this......
I need to open FTP directory and download a file into a string......
Any code examples would be greatly appreciated....
I have searched and searched...but can't tell the difference between all
the different versions of VB....
VB 2005 Express
Last edited by wazntme; Aug 9th, 2007 at 09:53 PM.
-
Aug 7th, 2007, 09:06 PM
#2
Hyperactive Member
Re: FTP Download file to string
Visual Studio .NET 2005/.NET Framework 2.0
-
Aug 7th, 2007, 09:59 PM
#3
Re: FTP Download file to string
-
Aug 9th, 2007, 02:55 PM
#4
New Member
Re: FTP Download file to string
See the following component.
http://www.jscape.com/sftpdotnet/
the Ftp.Download(Stream out, String filename)
the "out" variable can be a MemoryStream which you can then convert to a byte[] and to a String.
-
Aug 9th, 2007, 06:14 PM
#5
Thread Starter
New Member
Re: FTP Download file to string
OK thanks...
I can download a file to a .bin
How would I get that into a textbox? or string?
-
Aug 9th, 2007, 06:26 PM
#6
Re: FTP Download file to string
as jmcilhinney said, use WebClient.DownloadString
-
Aug 9th, 2007, 06:41 PM
#7
Thread Starter
New Member
Re: FTP Download file to string
 Originally Posted by Atheist
as jmcilhinney said, use WebClient.DownloadString
Sorry, new.....
Can you give me a little more info...
how to incorporate username/password
Last edited by wazntme; Aug 9th, 2007 at 07:09 PM.
-
Aug 9th, 2007, 07:28 PM
#8
Re: FTP Download file to string
 Originally Posted by wazntme
Sorry, new.....
Can you give me a little more info...
how to incorporate username/password
Read the documentation for the WebClient class and, particularly, the DownloadString method. If you still don't understand then you should ask but you should be erading the documentation first.
-
Aug 9th, 2007, 09:53 PM
#9
Thread Starter
New Member
Re: FTP Download file to string
Thanks for the point in the right direction...
Got it...Easier that I thought.......
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|