What is the difference between a byte array & byte buffer ? Also, in what situations should one be preferred over the other?
[my usecase is for a web application being developed in java].
Those two articles may help you http://nadeausoftware.com/articles/2008/02/java_tip_how_read_files_quickly and http://evanjones.ca/software/java-bytebuffers.html