Originally posted by dynamic_sysop
or without even needing to delete the exsisting file ...
VB Code:
  1. [color=blue]Dim[/color] img [color=blue]As[/color] Image = Image.FromFile("C:\tester.bmp")
  2.             [color=blue]Dim[/color] bmp [color=blue]As[/color] Bitmap = img
  3.             bmp.Save("C:\tester.bmp")
neither one works

this is what I tried, I tried the one above in the quatations also:
VB Code:
  1. Dim fs As New FileStream("C:\colormatrix.jpg", FileMode.Open)
  2.         Dim img As Image = Image.FromStream(fs)
  3.         fs.Close()
  4.         File.Delete("C:\colormatrix.jpg")
  5.         img.Save("C:\colormatrix.jpg")
gives the same error on the last line, after it has deleted the file only creates a 0kb file

this is stupid! I dont even want to delete teh file first, why the heck does this happen? it's nonsense