In C# I use the following code in order to read BMP image from hard disk then convert it into byte array then convert the array to base64 string.
my question is how to do that in c++? The image is 8 bit depth
here is my c# code
System.Drawing.Image temp = System.Drawing.Image.FromFile(path);
System.Drawing.ImageConverter converter = new ImageConverter();
String imgString = Convert.ToBase64String((byte[])converter.ConvertTo(temp, typeof(byte[])));