tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dola Woolfe <dolac...@yahoo.com>
Subject favicon when serving non-html
Date Tue, 06 Jul 2010 14:10:43 GMT
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message