I'm creating an program that needs to delete/overwrite an image called "Image.jpeg"
i have to code to upload already, but i need to be able to overwrite image.jpeg, so i was thinking of: delete file, upload new version
or: overwrite file
the problem is that i can't find anywhere how to achieve this
heres my code:
Try Using ms As New System.IO.MemoryStream PictureBox1.Image.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg) Using wc As New System.Net.WebClient wc.UploadData _ ("ftp://username:firstname.lastname@example.org/public_html/IMG/IMAGES/image.jpeg", ms.ToArray) End Using End Using Catch er As Exception MessageBox.Show(er.ToString) End Try