Skip to Main Content

Java Programming

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!

setting buffer size in inputstream

rameshjspnetJan 2 2009 — edited Jan 12 2009
Hi,

I would like to have a fast file transfer as close as to network transfer in a 100 mbps lan. what could be the best buffer size that I can use in my coding to read from my inputstreams and write them to an outputstream.

The sizes vary from 150MB to 1 GB for each document that I would like to transfer through a network.

I have used a buffer size of 40MB as against 8KB of a normal buffer size. will this be a good practice.

Thanks,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 9 2009
Added on Jan 2 2009
19 comments
2,037 views