Solved

Sending an image over a TCP connection....

Posted on 2001-06-13
5
142 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
  • 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

813 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now