|
-
May 16th, 2005, 11:45 AM
#1
Thread Starter
Addicted Member
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".

-
May 16th, 2005, 12:05 PM
#2
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?
-
May 17th, 2005, 02:03 AM
#3
Thread Starter
Addicted Member
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?
-
May 20th, 2005, 01:55 PM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|