This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am trying to download a file stored in Database(in a blob).I am just reading it and writing output to outputstream.
I am setting contenttype to "application/ms-word","application/vnd.ms-excel" depending upon the file extension. I am also setting the response header as ""Content-Disposition"," inline; filename=" + FileName
all this together is working perfectly on my xp based laptop. as soon as I moved it to my linux based server,It has stopped functioning. The pop-up for file open/save is not coming.The servlet just shows a blank page,no error at all. I don't know how to fix and what to do..
Thanks in advance, and sorry for the lengthy post... Vrunda
Joined: Dec 03, 2001
Hi, Problem Fixed!!! I checked the other topics related to "File Download" and changed my response header from "Content-Disposition"," inline; filename=" + FileName to "Content-Disposition"," attachment; filename=" + strFileName
and it's working now
I wish I had done this before posting reply... thanks anyways, Vrunda