English 中文(简体)
利用C#储存和查阅mp3文档
原标题:storing and accessing mp3 files using c#
  • 时间:2012-01-12 10:00:14
  •  标签:
  • c#
  • mp3

I m doing a web application where people will be able to stream sounds of all sorts.

我想要的是许多声音,我的问题是:这是储存议员3用于主流化的最佳、最有效的方式?

Right now, I have them all stored in one folder with an Id as file name. I then have a corresponding row in the database that stores all the sound data, like category; type of sound and stuff like that. So when someone wants to stream a file, my application asks the database for the Id and then returns a URL for the stream.

能否以更有效的方式这样做? 如果是,如何?

最好。

问题回答

就像你一样,你正在走正确的道路。 事情取决于客户(即浏览器或WinForm)。

一些建议:

  1. You can use web services to retrieve data from database. This will help if you want to decouple UI from database.
  2. You can keep all your files on different servers, if the number of them is huge; and store their absolute URLs in a database.
  3. Approach mentioned above will also help you in hosting media files and services/database on a different server.

如果你有具体问题,就更容易回答。 任何希望都有助于你们。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签