RESPONDER UNA PREGUNTA

Si para responder la pregunta, crees necesario enviar un archivo adjunto, puedes hacerlo a traves del correo [email protected]

    Pregunta:  53587 - LEER DATOS DE UN STREAM EN VISUAL BASIC .NET
Autor:  Beatriz J B
Hola:
Estoy leyendo datos de un puerto en una dirección IP. Lo que me llega es un XML q, entre otros datos, contiene una imagen. Lo que me llega por el puerto, lo leo en un Stream de la siguiente forma:
Dim dataS As String
Dim stream As Net.Sockets.NetworkStream = client.GetStream()
' Loop to receive all the data sent by the client.
i = 0
i = stream.Read(bytes, 0, bytes.Length())
While (i <> 0)
' Translate data bytes to a ASCII string.
dataS = dataS & System.Text.Encoding.ASCII.GetString(bytes, 0, i)
End While

Pero luego no sé cómo almacenar esos datos en un fichero .jpg q más adelante pueda cargar en un PictureBox para representar la imagen.
Si alquien me pudiera ayudar, sería genial.


Nombre
Apellidos
Correo
Comentarios