A
AndyNakamura
Guest
I have a database application that can open various files - .jpg .pdf .tif etc
The actual files are stored on the hard drive with just links to them stored in the db.
Because I don't want anyone to try to do a 'save as' for instance I've resorted to copying the file to mydocuments and changing the filename to eg temp.pdf, and opening it from there. The problem is that if someone wants to open more than one pdf then there is an error when trying to create the file as one with the same name already exists. When I create the file I could give it a unique name but then there is the danger of the mydocuments filling up with random files.
Is there a way to use filestream and opening the document from there so that I can just dispose of it after it's opened in the relevant program?
Cheers
Andy
Continue reading...
The actual files are stored on the hard drive with just links to them stored in the db.
Because I don't want anyone to try to do a 'save as' for instance I've resorted to copying the file to mydocuments and changing the filename to eg temp.pdf, and opening it from there. The problem is that if someone wants to open more than one pdf then there is an error when trying to create the file as one with the same name already exists. When I create the file I could give it a unique name but then there is the danger of the mydocuments filling up with random files.
Is there a way to use filestream and opening the document from there so that I can just dispose of it after it's opened in the relevant program?
Cheers
Andy
Continue reading...