Solved

Sending an image over a TCP connection....

Posted on 2001-06-13
5
143 Views
Last Modified: 2013-11-13
Here is my situation:
I have created two VB programs: one is a server, the other a client.  Both utilize the Microsoft Winsock Control.  I fire up the Server program, then with the client program I enter the server IP and connect.  I can get these two programs to connect fine BUT my next step is to be able to send an image from an Image Control to the server, and have the server display the image in its own Image Control.  Summary: how do I send an image over a tcp connection and display it?

Thank you everyone who attempts to solve this problem for me, I greatly appreciate it!

-Josh
0
Comment
Question by:jsm11482
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6187517
Just an idea,
Save the contents of image to a file
Send that file through Winsock
Loadpicture on the other  side of the line.
0
 

Author Comment

by:jsm11482
ID: 6188041
right, but i do not know how to send the image through winsock....
-Josh
0
 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 75 total points
ID: 6188540
See this link (it includes a source file)
http://www.vb-world.com/demos/winsock/
0
 

Author Comment

by:jsm11482
ID: 6189144
Thank you!
-Josh
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6190788
See this link (it includes a source file)
http://www.vb-world.com/demos/winsock/
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question