The image is first resized, compressed and then saved on disk as \"Preview.jpg\" and then it is opened to convert into byte array. The code works fine but I cannot figure ou
You could save it to a stream and load it from there
Using Str As New MemoryStream myThumb.Save(Str, jgpEncoder, myEncoderParameters) myImage = Image.FromStream(Str) End Using