471,306 Members | 1,268 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,306 software developers and data experts.

Problem with byte array....

hi all,
i have a byte array which has length of 10,000.I have to break this
byte array into smaller parts of length 512 and save this values into
another byte array.

I am doing this because i want to send the large byte array thro' the
socket connection.Plz help me....with example ...
with regards
sridev

Jan 5 '06 #1
1 1349
sridev wrote:
i have a byte array which has length of 10,000.I have to break this
byte array into smaller parts of length 512 and save this values into
another byte array.

I am doing this because i want to send the large byte array thro' the
socket connection.Plz help me....with example ...


You can do this without breaking the byte array up yourself (unless
it's as UDP, I believe) - the framework will do it for you.

If you *really* need to, however, create individual arrays and use
Array.Copy or Buffer.BlockCopy to copy the contents.

Jon

Jan 5 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by chris | last post: by
38 posts views Thread by jrlen balane | last post: by
reply views Thread by crawlerxp | last post: by
11 posts views Thread by Abhishek | last post: by
8 posts views Thread by intrepid_dw | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.