Also, reading the whole file is into a String is asking for trouble here. You should either use sendFile if Jetty has that functionality (basically let it stream the file to the client), or cut off the file and only return the last 4-8 KB.