SyntaxFix
Write A Post
Hire A Developer
Questions
byte[] data = dbEntity.getBlobData(); response.getOutputStream().write();
I think this is better since you already have an existing OutputStream in the response object. no need to create a new OutputStream.