String mimeType = mime.toString(Charsets.US_ASCII); // convert Buffer to String
    response.setContentType(mimeType);