|
-
May 15th, 2005, 08:54 AM
#1
Thread Starter
Junior Member
[winsock] send smiley
I want to sent a picture(smiley) with winsock and I do it like this
VB Code:
winsock1.senddata clipboard.getdata
and the smiley is on my clipboard. the problem is: the other person only receives numbers. so how do I send a picture?
-
May 15th, 2005, 10:59 AM
#2
Re: [winsock] send smiley
 Originally Posted by Compact
I want to sent a picture(smiley) with winsock and I do it like this
VB Code:
winsock1.senddata clipboard.getdata
and the smiley is on my clipboard. the problem is: the other person only receives numbers. so how do I send a picture?
You can't send the picture like that (as you already found out).
You have to get the picture data, then send that data.
First you probably have to copy the picture from the clipboard to a temporary picturebox on your application.
Then you can use the GetBitmapData, and SetBitmapData functions wich I posted in this thread: http://www.vbforums.com/showthread.php?t=338162
Use GetBitmapData to read the bitmap data, so you can send it over winsock. And use SetBitmapData to set the bitmap data on a picturebox on the client/sender side.
-
May 15th, 2005, 11:21 AM
#3
Re: [winsock] send smiley
You dont actually have to do that you can send the file using file transfer. Below is a link to guide which should help you...
File Transfer
Please note I have moved this to the network forum which is where this question should be
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|