Results 1 to 4 of 4

Thread: Binary Data in a Database Field

  1. #1

    Thread Starter
    Hyperactive Member umilmi81's Avatar
    Join Date
    Sep 2005
    Location
    Sterling Heights, Mi.
    Posts
    335

    Binary Data in a Database Field

    I deal a lot with images, and I hear things about storing the binary data in a field in the database.

    Does anyone actually do this? What are the advantages over simply storing it's path location as the field, and then just reading it off the disk?

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Binary Data in a Database Field

    Some advantages that spring to mind:
    • only the database needs to be operational, rather than another server (or the networking facilities of it)
    • the data is all in one place, so is easier to back up (or replicate)
    • the data is obviously data, rather than just "random files" that could be deleted or altered by someone.
    • the "files" have the same security settings as the rest of the database, rather than those of the file location (which may be need to be changed for other reasons).


    If you want some code to do this, see the "Tutorials" sticky thread in the Database Development forum.

  3. #3
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Binary Data in a Database Field

    Storing images in Access consumes lots of space, RhinoBull has something in his sig about storing and reading images in a database, have a look...
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  4. #4
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Binary Data in a Database Field

    umilmi81,

    Storing the data on disk and just a pointer to it has the speed factor. but the other side to that is the backup and maintenance factor which will be a nightmare unless you can dedicate a whole server or disk to it for security and backup reasons.

Posting Permissions

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



Click Here to Expand Forum to Full Width