在我的网站上上传和播放视频 [英] Upload and Play video in my website

查看:78
本文介绍了在我的网站上上传和播放视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,

我想在数据库中上传视频,我想在我的网站中检索它.我在C#中使用asp .net 2.0,我的后端是ms sql server2005.如果有人知道解决方案,请告诉我.

预先感谢您,

Hi Friends,

I want to upload videos in database and i want to retrieve it in my website. i m using asp .net 2.0 with c# my back end is ms sql server 2005. if anyone know the solution please tell to me.

Thanks in advance,

推荐答案

我个人将在数据库中将视频的路径存储在您的站点上,并以此方式进行操作.

因此,将其上传到服务器上的VideoStore文件夹.并将路径和文件名存储在数据库中,

为我假设的每个视频生成一个GUID,然后在回放视频时使用它来调用视频?

http://www.sothinkmedia.com/guide/putvideo.htm [
Personally I would store the path to the Video on your site in the database, and do it that way.

so upload to a VideoStore folder on the server. and store the path and file name in database,

Generate a GUID for each video I suppose and then use this to call the video up when playing the video back?

http://www.sothinkmedia.com/guide/putvideo.htm[^]
On that page it shows how to embed flash videos, what you could do is on load bind the location to be the file path of the video.

Would you be showing 1 video per page?
If so, you could use the code they demonstrate but using the binding.


这篇关于在我的网站上上传和播放视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆