Click here to Skip to main content
13,298,348 members (69,855 online)
Rate this:
Please Sign up or sign in to vote.
See more:
How to transfer image between two windows application using TCP connection.Pls help me.Thanks in advance.
Posted 16-Feb-13 8:37am
Zoltán Zörgő 16-Feb-13 13:44pm
What have you done already?
Logi Guna 16-Feb-13 13:52pm
Please do not repeat your question. I already answer your question:

Can you tell where are you stuck?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

1) Create a socket based clien-server architecture like in the following sample:[^]
2) As you see, there is a stream to write and one to read. You can serialize any image to a stream:
Image im = Image.FromFile(@"c:\image.jpg");
MemoryStream ms = new MemoryStream();
im.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg); 

Likewise you can create an image FromStream[^] at the other end.
Sergey Alexandrovich Kryukov 16-Feb-13 19:41pm
Some basic ideas. My 5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.171207.1 | Last Updated 16 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100