Yes sure, im quite sure that is async problem, because in debug jumping between line
objWB.SaveJpeg(oMemoryStream, objWB.PixelWidth, objWB.PixelHeight, 0, 100)
and
oMemoryStream.Seek(0, IO.SeekOrigin.Begin)
and using a watch on the variable oMemoryStream, i can see pixels counts increase each step...
objWB.SaveJpeg(oMemoryStream, objWB.PixelWidth, objWB.PixelHeight, 0, 100)
and
oMemoryStream.Seek(0, IO.SeekOrigin.Begin)
and using a watch on the variable oMemoryStream, i can see pixels counts increase each step...
Daniele