Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
How to transfer image between two windows application using TCP connection.Pls help me.Thanks in advance.
Posted 16-Feb-13 8:37am
Comments
Zoltán Zörgő at 16-Feb-13 13:44pm
   
What have you done already?
Logi Guna at 16-Feb-13 13:52pm
   
Please do not repeat your question. I already answer your question:
http://www.codeproject.com/Answers/545035/Iplushaveplustwoplusformsplushowplustoplussendplus#answer1
 
Can you tell where are you stuck?

1 solution

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

Solution 1

1) Create a socket based clien-server architecture like in the following sample: http://www.dodgycoder.net/2012/08/tcpip-sockets-in-net-4.html[^]
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.
  Permalink  
Comments
Sergey Alexandrovich Kryukov at 16-Feb-13 19:41pm
   
Some basic ideas. My 5.
—SA

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

  Print Answers RSS
0 CHill60 350
1 Sergey Alexandrovich Kryukov 275
2 Richard MacCutchan 194
3 Peter Leow 170
4 Zoltán Zörgő 150
0 Sergey Alexandrovich Kryukov 9,238
1 OriginalGriff 6,806
2 Peter Leow 4,432
3 Zoltán Zörgő 3,919
4 Richard MacCutchan 2,782


Advertise | Privacy | Mobile
Web01 | 2.8.150128.1 | Last Updated 16 Feb 2013
Copyright © CodeProject, 1999-2015
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