Results 1 to 4 of 4

Thread: Split a data before sending it? so that it does not exceed 8 kb #quick help

  1. #1

    Thread Starter
    Addicted Member prophecy's Avatar
    Join Date
    Mar 2005
    Location
    In the developers list of Visual Basic ;-)
    Posts
    242

    Arrow Split a data before sending it? so that it does not exceed 8 kb #quick help

    Hi i just asked a question why the contents of a whole txt file do not get sent in one shot. thats becoz my string exceeds 8 kb!

    ok now is there anyway so that i can Split into many parts in short is there any easy way i can send 3 lines of a mutilinex txtbox at a time?


    thx
    Got You! - ©
    - My Signature.
    Visit www.compzone.hhnf.com. If you think i helped you, add to my reputation by Clicking "Rate This Post".

  2. #2
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: Split a data before sending it? so that it does not exceed 8 kb #quick help

    You can use one of Vb's many string manipulation functions

    http://www.vbforums.com/showthread.php?t=316508

    Have a look at the mid function,

    Why are you sending this data? There may be an easier way what is it?

  3. #3

    Thread Starter
    Addicted Member prophecy's Avatar
    Join Date
    Mar 2005
    Location
    In the developers list of Visual Basic ;-)
    Posts
    242

    Re: Split a data before sending it? so that it does not exceed 8 kb #quick help

    i want to send the contents of txt file . ive loaded it into a textbox and now want to send it but the whole text is not recieved on the client! wat do i do?

  4. #4
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803

    Re: Split a data before sending it? so that it does not exceed 8 kb #quick help

    If you read from a file it's even easier.

    You don't need to read the file into a text box.
    And don't read the whole file at once ! What if the file is 1 GByte (or even bigger) ?

    If you search in the CodeBank you will find exmples on this.
    I recomend this one:
    Visual Basic - Send File With Winsock

    And I also recoment the code I posted in that thread, but that's up to you...

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