Results 1 to 3 of 3

Thread: Saving .wav file in SQL Server database

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2004
    Posts
    1

    Arrow Saving .wav file in SQL Server database

    Can somebody plz guide me how can i save a .wav sound file in SQL Server database. One possible that i figured out was to save the address of the folder where i place my sound file and sav the link in the DB, but it is not wanted by the by my course supervisor. They want me to save it in MS SQL Server DB...the whole sound file. Kindly anyone of you help me ASAP.

    thnx

    Fahd

  2. #2
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Norwich, UK
    Posts
    405
    others on this forum migth disagree but as far as i am concerned saving binary data to a database is (almost) always a bad idea.
    For example do a google on storing images in sql server and see how many times people say its a bad idea.

    if i were you i would go down the route you thought of. hold the path to the binary in the db.

    if you really have to save the wav to the db i think you would need to make the field a byte data type (or something like that) and then convert the wav file to a byte array (using a stream?)

    sorry i can't be more help. as i said i wouldn't do it.

  3. #3
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    I don't disagree at all, I 100 percent agree with sagey.

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