image to string for socket

i could probably go through each pixel and get an RGB value for each pixel but i think it would be lengthy and messy any ideas?


Assuming the image is in a Picture object you can use the GetData method to convert into a format that is suitable for saving to a file or writing to a socket:

Dim data As MemoryBlock = mypic.GetData(Picture.FormatBMP) mysocket.Write(data)