I have a dynamically created Image control that is populated via OpenFileDialog, for example:
OpenFileDialog dialog = new OpenFileDialog(); if (dialog.ShowDialog() == true) { using (FileStream stream = dialog.File.OpenRead()) { BitmapImage bmp = new BitmapImage(); bmp.SetSource(stream); myImage.Source = bmp; } }
I want to send the image back to the server in a separate function call, like a string through a web service.
How to get / base 64 memory stream string from myImage.Source
source share