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
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?
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?
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...