Ver Mensaje Individual
  #4 (permalink)  
Antiguo 11/09/2009, 09:39
kornneo
 
Fecha de Ingreso: agosto-2007
Mensajes: 25
Antigüedad: 17 años, 6 meses
Puntos: 0
Respuesta: pasar un datarow con image a byte[]

amigo ahi esta como lo hago yo en C# espero te sirva..!!!

Código:
txtImagen.Image = (tTempo.Rows[0]["imagen"] is DBNull)
                        ? null
                        : Bytes2Image((Byte[])tTempo.Rows[0]"imagen"]);


public static Image Bytes2Image(Byte[] nBytes)
        {
            if (nBytes == null) return null;

            var ms = new MemoryStream(nBytes);
            try { return new Bitmap(ms); }
            catch { return null; }
        }
espero te sirva