简体   繁体   English

使用数据库中的文件路径从gridview的文件夹中播放音频(MP3)文件,但音频文件将位于网站目录之外

[英]Play audio (MP3) files from folder in gridview with filepath in database but the audio file will be outside to the website directory

我想从数据库中播放歌曲,但是数据库中只有歌曲路径是和谐的,所以如何执行此操作,并且我不想使用歌曲的ID,我想按列名(ASP.NET)(SQL Server)选择歌曲,但是这里的音频会在网站目录之外

You can't get access to a file that is not publicly available. 您无法访问不公开可用的文件。 You must find a way to make your song accessible from www. 您必须找到一种方法,使您的歌曲可从www访问。 The easiest way is to move your file into the website directory. 最简单的方法是将文件移动到网站目录中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM