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 have to display a file from the server on to the browser. All I have the path of the file. The file may be anything, i.e. of any type. I am reading the file in to bytestream array and writing that bytestream to the out stream of the response. The problem here is that I cannot determine the content type of the response. As the file may be of any type i cannot hard-code the content type. is there any way out of this ? -Kaustubh.