[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
Re: FTP Download file to string
Re: FTP Download file to string
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.
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?
Re: FTP Download file to string
as jmcilhinney said, use WebClient.DownloadString
Re: FTP Download file to string
Quote:
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
Re: FTP Download file to string
Quote:
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.
Re: FTP Download file to string
Thanks for the point in the right direction...
Got it...Easier that I thought.......