Hi, I need to send a file through sockets connection. Right now, I'm able to send an image, wich is really an object with type of image, and then I use the Save method of Bitmap object to physically put the image file into the other pc. So, I'm not really sending the image file, but an image object that on other side becomes a file. I thought about one approach I could do to get it done. I read byte by byte of the file and put them into an array, serialize it and send it to the server. At server I deserialize the object but... how do I do to get file from that array of bytes?

Any help will be really appreciate.
Thanks.