> > > Hello
>
[quoted text clipped - 48 lines]
>
> Thanks
Here is the solution for anyone looking!
Dim filename As String = "ftp://ftp.server.com/" &
strFileName
Dim ftpReq As FtpWebRequest = WebRequest.Create
(filename)
ftpReq.Method = WebRequestMethods.Ftp.DownloadFile
ftpReq.Credentials = New NetworkCredential("username",
"password")
Dim FTPResp As FtpWebResponse = ftpReq.GetResponse
Dim ftpRespStream As Stream =
FTPResp.GetResponseStream
Dim img As System.Drawing.Image =
System.Drawing.Image.FromStream(ftpRespStream)
img.Save(Server.MapPath("../images/" & strFileName),
System.Drawing.Imaging.ImageFormat.Jpeg)
Martin Honnen - 01 Apr 2009 16:08 GMT
> Here is the solution for anyone looking!
>
[quoted text clipped - 14 lines]
> img.Save(Server.MapPath("../images/" & strFileName),
> System.Drawing.Imaging.ImageFormat.Jpeg)
WebClient should suffice
Dim wc As New WebClient()
wc.Credentials = New NetworkCredential("username",
"password")
wc.DownloadFile("ftp://ftp.server.com/" &
strFileName, Server.MapPath("../images/" & strFileName))

Signature
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/