Hack Forums
[C#] [C#] Serialize image and send it with a TcpClient [Example-Source] - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C#] [C#] Serialize image and send it with a TcpClient [Example-Source] (/showthread.php?tid=636304)



[C#] Serialize image and send it with a TcpClient [Example-Source] - Charny - Aug 25, 2010

This example shows how to serialize an image, send it with a TcpClient, receive it on the server, deserialize it and shows it in a PictureBox.


[img]http://CharnyUpload.co.cc/download.php?dl=149[/img]




The code :
Spoiler (Click to View)




Download :

[img]http://host-a.net/Charny/ImageSerialization.zip/link.png[/img]




* - Aeonhack Archivist - Aug 25, 2010

Thanks for the cool example. I will definitely follow this closely. Very cool.


* - Ble$$eD - Aug 25, 2010

Nice share, coders need to realize how powerful and easy serialzation can be Thanks.


* - PurpleHaze - Aug 25, 2010

This is great.
I got confused with your last example on this because of the extra class you created, but this example here is absolutely perfect.


* - Chiko - Aug 25, 2010

thank you bro awesome and thanks for sharing


* - Charny - Aug 25, 2010

Thanks for the comments !


* - DarkSeven46 - Aug 25, 2010

This is very useful, thanks. It works fine.


* - `Jacob - Aug 25, 2010

Thanks for the share man. May be needing this in the future.


* - MrZander - Aug 25, 2010

Can someone lead me to a tutorial or explain exactly what serialization is and is useful for?
I tries searching, couldn't find any topics with serialize in the title... which makes no sense...


* - Charny - Aug 25, 2010

Check this article :

http://en.wikipedia.org/wiki/Serialization


* - Charny - Oct 6, 2010

BUMP for this useful example :D!


* - t3h h4x - Nov 12, 2010

thanks. taught me something nice for once :)


* - Charny - Dec 4, 2010

(Nov 12, 2010 02:28 PM)kylecodes Wrote:  thanks. taught me something nice for once :)

You're welcome, I hope it helped you 😉.