dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: how to store image, music and video files in database

  1. #1
    Join Date
    Mar 2008
    Posts
    13

    how to store image, music and video files in database

    hey guys i am working on a project that invovles storing image, music and video files in a database. i would appreciate if anybody can tell me how to save and retrieve the files to and from the database. thanks
    i use VS 2008, WPF C sharp.
    thanks in advance.

  2. #2
    Join Date
    Sep 2008
    Location
    Netherlands
    Posts
    865

    Re: how to store image, music and video files in database

    You need to use a BLOB (Binary Large Object) field.

  3. #3
    Join Date
    Oct 2004
    Location
    Rocket City
    Posts
    220

    Re: how to store image, music and video files in database

    We store such files in one column of a database table. The column has type varbinary(max).

  4. #4
    Join Date
    Oct 2010
    Posts
    12

    Re: how to store image, music and video files in database

    Just a thought, but alternatively you can store the data elsewhere and just store the path to the data in the DB. Not sure what your application is but thought it worth mentioning. I've had horrible problems with storing large media files in a DB, it slow's things down far too much over a network and is even more of a pain to backup.

    Just a thought, please take no offence.

    Regards

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)