How can I create a Base64-Encoded string from a GDI+ Image in C++?
问题 I asked a question recently, How can I create an Image in GDI+ from a Base64-Encoded string in C++? , which got a response that led me to the answer. Now I need to do the opposite - I have an Image in GDI+ whose image data I need to turn into a Base64-Encoded string. Due to its nature, it's not straightforward. The crux of the issue is that an Image in GDI+ can save out its data to either a file or an IStream*. I don't want to save to a file, so I need to use the resulting stream. Problem is,