Click here to Skip to main content
15,886,067 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Im trying to make a picturebox display an image from an ftp server, but I keep getting the error: The remote server returned an error: (503) Not logged in. Anyway to fix? Here is the code
VB
Try
            Dim wc As New WebClient
            Dim bytes As Byte() = wc.DownloadData("ftp://rustledatabase.x.gg/testpic.jpg")
            Dim imgsteam As New MemoryStream(bytes)
            PictureBox2.Image = Image.FromStream(imgsteam)
        Catch ex As Exception
            MsgBox(ex.Message)
        End Try
Posted
Updated 8-Aug-14 20:13pm
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900