public ProbarCargaImagen() { InitializeComponent(); byte[] binarios = u.cargarImagen(2); Stream stream = new MemoryStream(binarios); BitmapImage bt = new BitmapImage(); bt.BeginInit(); bt.StreamSource = stream; bt.EndInit(); imgFoto.Source = bt; }
public ProbarCargaImagen() { InitializeComponent(); byte[] binarios = u.cargarImagen(2); Stream stream = new MemoryStream(binarios); BitmapImage bt = new BitmapImage(); bt.BeginInit(); bt.StreamSource = stream; bt.EndInit(); imgFoto.Source = bt; }