如何根据下拉列表的选择从SQL数据库显示视频? [英] How to display video from SQL Database based on selection of Drop Down List?

查看:102
本文介绍了如何根据下拉列表的选择从SQL数据库显示视频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问候所有,



我对编码不是很好,但是这里有:

我创建了一个简单的项目,我希望并且旨在上传视频并根据下拉列表的选择显示它们。问题是,我可以将视频上传到数据库,但我不知道如何获取要在我的项目网站上显示的视频。



任何帮助或关于如何这样做的提示非常感谢。旁注,我也知道可用于显示此类视频的视频播放器的类型,任何人都可以让我知道的任何免费视频播放器也很棒,我上传的文件大多是.MP4扩展名。



如果我能帮助进一步澄清我的示例代码或其他内容,请告诉我。

非常感谢! :D

Greetings all,

I'm not really good with codings, but here goes:
I created a simple project which I wish and aim to upload videos and display them based on selection of drop down list. The thing is, I am able to upload the videos into the database but I have no idea how to fetch the videos to display on my project website.

Any help or tips on how to do so very is much appreciated. Side note, I am also aware about the type of video player that can be use to display such videos, any free video player that anyone can let me know of is also great and the files I uploads are mostly of .MP4 extension.

Do let me know if I can help to clarify further with my example codes or something.
Thank you very much! :D

推荐答案

为此,您需要将视频文件转换为二进制数据并将此二进制数据存储到数据库。

在回溯视频时将此二进制数据转换为视频文件并播放此视频文件。

希望这会对您的问题提供一些提示。
For this you need to convert video file to binary data and store this binary data to the database.
While retriving video convert this binary data to video file and play this video file.
Hope this will give some hint to your problem.


这篇关于如何根据下拉列表的选择从SQL数据库显示视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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