O
OSVBNET
Guest
Hey
I have embedded some files into my vb.net app and use this code to extract them at runtime:
FileSystem.WriteAllBytes(TargetPath, My.Resources.file.file, False)
However, now I added a new BMP file to resources and using the same code does not work for BMP images:
Value of type 'System.Drawing.Bitmap' cannot be converted to '1-dimensional array of Byte'.
Advise please
Continue reading...
I have embedded some files into my vb.net app and use this code to extract them at runtime:
FileSystem.WriteAllBytes(TargetPath, My.Resources.file.file, False)
However, now I added a new BMP file to resources and using the same code does not work for BMP images:
Value of type 'System.Drawing.Bitmap' cannot be converted to '1-dimensional array of Byte'.
Advise please

Continue reading...