I can get the bytes of the image file as follows:
Dim nBytes() As Byte
nBytes = File.ReadAllBytes(uPath)
This works great, however I would like to get bytes from a bitmap that only exists in memory.
I would not want to save it to a file first.
Is this possible, and if so, how?
Thank.
source
share