I'm currently working on a document management system that gets a BLOB from a database and displays the document (usually a pdf, but this shouldn't matter). My code works to open the document, but when saving the file after opening, it saves as the URL.pdf. So if the URL of the page to get the file is:
get.jsp?doc=1
then the document is loaded from the database, displayed to the user just fine.
However, if you try to save the file, the default name comes up as
get.pdf
I'd like it to be the actual document name, which is stored in the database. I figure I have to change the URL to do so, but I'm okay with it working a different way, as long as the document can retain the name, which the user probably won't know. I'm using JSP. Thanks in advance.