ServletOutputStream output = response.getOutputStream();
output.write(byte[]);
What is the most effective way to write File to javax.servlet.ServletOutputStream?
EDIT:
won't this be more effective if the NIO was used?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…