I am using the Java Jersey to implement a REST service. One thing my service should provide is a file download option. These files are quite big and are constructed from dat
How about
File fileToSend = getFile(); return Response.ok(fileToSend, "application/zip").build();
The media type can be set to match the file being sent.
This looks pretty straight forward but more importantly, do java experts reading this see a performance problem with the solution?