Hi,

When I serve up, say, a PDF file, how do I control the favicon?

Here's my code:


   response.reset();
    response.setContentType(IOUtilities.gMIMEType(fn));
    response.setHeader("Content-disposition", "inline; filename=" + 
file.getName());
    OutputStream outStream = response.getOutputStream();
    synchronized(response.getOutputStream()){
      outStream.write(IOUtilities.gFile2Bytes(file.getAbsolutePath()));
    }
    response.flushBuffer();

Thanks in advance



      

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to