i´m gonna answer, i bet there is someone looking for this solution, hope it helps.
- in client side:
string fileName = string.Empty;
using (OpenFileDialog ofd = new OpenFileDialog())
{
ofd.Filter = "Archivos de imágen | *.jpg;*.jpeg;*.tif;*.tiff;*.bmp;*.png";
if (ofd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
fileName = ofd.FileName;
byte[] imgArray = File.ReadAllBytes(fileName);
var result = yourWcfServiceProxy.YourServiceMethod(imgArray);
}
}
- in server side:
public string YourServiceMethod(byte[] imageArray)
{
var stream = new MemoryStream(imageArray);
Image img = Image.FromStream(stream);
}
i have a poor english but i hope you understand. ;)