Save binary data VS path file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dgaIL
    New Member
    • Apr 2012
    • 4

    Save binary data VS path file

    I was wondering what is best for a website..
    If I give the users the possibilite to save their pictures into the DB as binary data or to save them into a folder in a server.
    In one case I have to convert the binary data to image, and in the other way I just save the path of the picture..

    So.. what is best?

    thanks!
  • PsychoCoder
    Recognized Expert Contributor
    • Jul 2010
    • 465

    #2
    I've always tried to steer people from storing images in the database, it's rough on resources and will, in time, start wreaking havoc on your performance. I would store them in a directory on your site and store the image info (path, name, etc) in your database.

    Comment

    • dgaIL
      New Member
      • Apr 2012
      • 4

      #3
      Originally posted by PsychoCoder
      I've always tried to steer people from storing images in the database, it's rough on resources and will, in time, start wreaking havoc on your performance. I would store them in a directory on your site and store the image info (path, name, etc) in your database.
      Thank you very much for the information :)

      Comment

      • PsychoCoder
        Recognized Expert Contributor
        • Jul 2010
        • 465

        #4
        No problem, glad I could help :)

        Comment

        Working...