I am developing RESTAURANT web site. I have a form that allows restaurant owners to submit details about their restaurant. I would like to allow them to submit an image and text document(e.g., menu) to the web site. I am planning on storing the images as a BLOB in the database and I am not sure how to store the large text documents in the database which I assume will either be a WORD document or a PDF.
Being a newbie to programming, I was wondering about the best strategy for capturing this information? Should I store the submitted items first in a file in a directory and then pass them to the database or is there some sort of way that I can omit that step and hold them in some sort of control and pass them directly to the database when I add the restaurant record to the database?
Thanks in advance for any guidance on the best approach!
If you’re on SQL 2008 or greater, you can also look at using the new FileStream features:
http://msdn.microsoft.com/en-us/magazine/dd695918.aspx