Results 1 to 6 of 6

Thread: Sending a picture to a client

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2008
    Posts
    87

    Sending a picture to a client

    Hey guys

    I just made a screen capture and when im trying to send it to a client and show it in a imagebox nothing happens...

    is there any examples in here that could help me??

    cause I searched but didnt finde anything I want..

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: Sending a picture to a client

    How are you trying to send the data (what methods)? and is the client another PC? Can you post your "send" code?
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2008
    Posts
    87

    Re: Sending a picture to a client

    this is the send method
    savepath is the path of the pic
    FileTotal is as long
    File is as string
    #|# as string to spilt the data from eachother
    Code:
    Open savepath For Binary As #1
    File = Input(LOF(1), 1)
    Close #1
    FileTotal = Len(File)
    winsck.SendData "screen" & "#|#" & FileTotal

  4. #4
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: Sending a picture to a client

    Couple of things. I am not a Winsock guru by any stretch of the imagination.

    I see that you are trying to send the length of the data, but you are not sending the data. You are reading the file into a variable named File but not sending it.

    Delcare File in your routine, if not already done: Dim File As String
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Feb 2008
    Posts
    87

    Re: Sending a picture to a client

    oka and how to receive it and put it in imagebox??

  6. #6
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: Sending a picture to a client

    Anything I write would only be copying other people's posts. Therefore, let me point you to a thread that might answer all of your questions. Some of this site's best networking ppl chimed into that post. If not, search for these keywords in the forum, you should find the answers you need: Bitmap Winsock
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

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