Storing images in Database

Results 1 to 2 of 2

Thread: Storing images in Database

  1. #1
    Join Date
    Dec 1969

    Default Storing images in Database

    Just a quick one, if anyone knows how to store files in a database. Not the file name with reference to a certain directory(which is where my research has led me to) but rather the physical file in a cell. <BR><BR>This would have two huge advantages:<BR>1)overwriting filenames is impossible<BR>2)website maintenance is greatly reduced, because currently i have to check for "deleted" references to files in my directory and then physically delete those which still exist. This is because everyone only has add and read privileges and not delete/overwrite.<BR><BR>Hope someone knows...I am using mySQL and Oracle databases which are supposidly capable of this function.<BR><BR>Regards<BR>t

  2. #2
    Join Date
    Dec 1969

    Default RE: Storing images in Database

    BLOB fields.<BR>Binary Large OBjects<BR>its not a recommened method, but you can use them.<BR>its really better just to store a filename in the db and then use that in your &#060;img&#062; tag<BR>&#060;img src=";%=rs("fieldName")%&#062;"&#062;<BR>much easier and much less expensive.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts