将数据库存储在视频中并检索视频ASP.Net [英] Store DataBase inside Videos And Retriving Videos ASP.Net

查看:93
本文介绍了将数据库存储在视频中并检索视频ASP.Net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

WindowsMedia1.VideoURL = ("SlideImages/") + fileuploadimages.FileName ;





con.Open();
       cmd.Connection = con;
       cmd.CommandText = "select * from VideoHandling";
       SqlDataReader dr = cmd.ExecuteReader();
       while (dr.Read() == true)
       {
           asasasa = dr["Im_Name"].ToString();
       }
       con.Close();
       Response.Write(asasasa.ToString());
       string path = fileuploadimages.PostedFile.FileName.ToString();
       Response.Write(path);
       fileuploadimages.PostedFile.SaveAs(Server.MapPath(path) + ("SlideImages"));


       fileuploadimages.SaveAs(Server.MapPath("SlideImages") + "//" + fileuploadimages.FileName);
       WindowsMedia1.VideoURL = ("SlideImages/") + fileuploadimages.FileName ;





错误
找不到路径"E:\ Documents and Settings \ User \ My Documents \ Visual Studio 2008 \ WebSites \ VideoPlaying \ SlideImages \"的一部分.





Error
Could not find a part of the path ''E:\Documents and Settings\User\My Documents\Visual Studio 2008\WebSites\VideoPlaying\SlideImages\''.

推荐答案

此路径是否存在:
E:\ Documents and Settings \ User \ My Documents \ Visual Studio 2008 \ WebSites \ VideoPlaying \ SlideImages

看起来目录SlideImages可能在服务器上不存在.另外,您应该检查用户是否实际上传了任何文件.

此外,

Does this path exist:
E:\Documents and Settings\User\My Documents\Visual Studio 2008\WebSites\VideoPlaying\SlideImages

It seems like the directory SlideImages may not exist on the server. Also, you should check whether any file was actually uploaded by the user.

Further,

Server.MapPath(path) + ("SlideImages")




and

Server.MapPath("SlideImages")



可能有2条不同的路径,具体取决于SlideImages虚拟目录指向的位置.



maybe 2 different paths depending on where the SlideImages virtual directory points.


这篇关于将数据库存储在视频中并检索视频ASP.Net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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