Storing a pdf file.

Sean Wilson snw at paradise.net.nz
Tue Mar 1 16:54:20 CST 2005


>I have a lot of pdf files that I'd like to write an app to manage. What's 
>the best way to store and retrieve a pdf file in a database? When I want 
>to view a file I'd like to just create a temporary pdf from the data stored.
>
>I'd like to do it that way to make the files more transportable. Or should 
>I just save relative references to the files.

Which development environment/Valentina API are you using?

In general, I'd envisage reading in the binary data and storing it in a 
blob field with a corresponding varchar field holding the original document 
name. When requested, write out the binary data (assigning necessary 
creator/type info if needed on a Macintosh - or will the raw binary be 
enough to re-create this?) and open/display the file.




More information about the Valentina mailing list