Click here to Skip to main content
12,634,107 members (23,347 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VB 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ő 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:
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 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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.161208.2 | Last Updated 16 Feb 2013
Copyright © CodeProject, 1999-2016
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