Storing binary data in the database is a big no-no. As I outlined in my previous post, the way to do this would be to define a new file type call it .attachment and simply have the UI modified to special case handling of it. So when the user add a second pdf to a book record it automatically gets added to the attachment file (which can internally be a zip container).
|