Ver Mensaje Individual
Antiguo 26-mar-2008, 10:33   #5 (permalink)
lucho987
lucho987 ha deshabilitado el karma
 
Fecha de Ingreso: febrero-2008
Mensajes: 42
De acuerdo Re: subir imagen ayudita porfavor

mira esto es lo que quiero realizar ....


Código:
Public Function GetBitImg(ByVal img As FileUpload, ByVal txt As TextBox) As Byte()
        If txt.Text = "" Then
// aca estaria el codigo para la imagen default
        Else
//aca tomo lo que trae el fileupload y me devuelve un byte para luego insertarlo en la bd ....
            Dim httpimg As HttpPostedFile = img.PostedFile
            Dim bit(img.PostedFile.InputStream.Length + 1) As Byte
            httpimg.InputStream.Read(bit, 0, img.PostedFile.ContentLength)
            Return bit
        End If

    End Function
como seria el codigo para capturar la imagen por defecto en el servidor y devolver un byte gracias............
lucho987 está desconectado   Responder Citando