Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Ron McLeod
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
Java in General
creating blocks of raw bytes
Kumar Kausikasa
Ranch Hand
Posts: 45
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
Can someone tell me how to creates blocks of bytes.
I want to create blocks of size 100KB, 32KB, 128KB, 1MGB etc.
Thanks for your time.
praveen.
Jim Yingst
Wanderer
Posts: 18671
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Ummm...
byte[] b1 = new byte[1024*100];
byte[] b2 = new byte[1024*32];
byte[] b3 = new byte[1024*128];
byte[] b4 = new byte[1024*1024];
"I'm not back." - Bill Harding,
Twister
Create symphonies in seed and soil. For this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
InputStream.read(byte[])
Java I/O
Best Way to Edit a Byte Array
How to read a file block by block?
FileInputStream.read(byte []) question
More...