Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Fastest way of reading a binary file into a byte array

807600Jun 5 2007 — edited Jun 5 2007
Hi

I have seen there are alot of methods for reading files in Java, and in this jungle I have gotten a bit confused on which way is better to solve a specific problem. MY problem in this case is to read an entire file as binary into a byte array. Which method should I use for this?

All this inputstreams and readers are really making my head spin
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 3 2007
Added on Jun 5 2007
2 comments
458 views