Results 1 to 2 of 2

Thread: Sending arrays with winsock

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2000
    Posts
    60
    I'm writing a program to exchange pictures with winsock. I've converted them into a bytearray and can send them over the wire but I just can't get the DataArrival Event right (the array is sent in multiple blocks) The problem is that is have to work remotely so I can't debug my code properly.
    Can anyone explain how this dataArrival event really works or does anyone have some code for it that I can study.
    Thank you.

  2. #2
    Junior Member
    Join Date
    Jan 2001
    Location
    Shanghai China
    Posts
    20

    Wink change Excel file into Byte array

    Hi,
    I have the problem very similar to yours.I'd like to write a program in vb to send mail with attachment .
    I now can use winsock control to send mail but I can't attach files. I find the SendData method of winsock control can send binary data if I change the file into a byte array.But I don't know how to change a certain file such as Excel file to byte array.Can you give me some suggestions?


    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width