Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to store audio files in sqlserver 2000?

How to store audio files in sqlserver 2000?

Scheduled Pinned Locked Moved ASP.NET
databasehelptutorialquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    googlejumbo
    wrote on last edited by
    #1

    How to store audio files in sqlserver 2000? i want to store all mp3 files in sqlserver and want to retrieve them from the database , so that i can play them one by one , can anyone tell me the code for this task ? please suggest me the logic or any code for this help me out

    A E N 3 Replies Last reply
    0
    • G googlejumbo

      How to store audio files in sqlserver 2000? i want to store all mp3 files in sqlserver and want to retrieve them from the database , so that i can play them one by one , can anyone tell me the code for this task ? please suggest me the logic or any code for this help me out

      A Offline
      A Offline
      Arindam Tewary
      wrote on last edited by
      #2

      As audio file is big enough you can store as VARBINARY type which stores as binary data if VARBINARY is available in SQL SERVER 2000(VARBINARy is avaiable in sql server 2005). As I am working using sql server 2005 please check what is equivalent to VARBINARY of SQl server 2005 in SQL server 2000.

      Thanks, Arindam D Tewary

      1 Reply Last reply
      0
      • G googlejumbo

        How to store audio files in sqlserver 2000? i want to store all mp3 files in sqlserver and want to retrieve them from the database , so that i can play them one by one , can anyone tell me the code for this task ? please suggest me the logic or any code for this help me out

        E Offline
        E Offline
        eyeseetee
        wrote on last edited by
        #3

        Why not store the address for the music file in the database and then just retrive that, therefore you wont database wont bloat in size with loads of music files

        We are not a Code Charity

        1 Reply Last reply
        0
        • G googlejumbo

          How to store audio files in sqlserver 2000? i want to store all mp3 files in sqlserver and want to retrieve them from the database , so that i can play them one by one , can anyone tell me the code for this task ? please suggest me the logic or any code for this help me out

          N Offline
          N Offline
          NetBot
          wrote on last edited by
          #4

          Although i would recommend u not to store audio files in sql, rather u should store them in ur file system, I guess you need to store them in sql as BLOB type ie in a byte stream. While fetching it from sql again u have to convert again this byte stream to ur suitable format(audio).

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups