Do not use this method. Use FromStream instead and do the following:
Using FileStream = New IO.FileStream("D:\Test.jpg", IO.FileMode.Open)
Dim x = System.Drawing.Image.FromStream(FileStream)
'Do your image manipulation...'
End Using
IO.File.Delete("D:\Test.jpg")
source
share