예제 #1
0
 public void PlayVideo()
 {
     string ID = Request.QueryString["VideoID"].ToString();
     RegisterVideo rv = new RegisterVideo();
     rv.PKVideoID = Convert.ToInt32(ID);
     rv.GetVideoFromID();
     Response.Clear();
     Response.Buffer = true;
     Response.AddHeader("content-disposition", ("inline;filename=" + rv.VideoName));
     Response.ContentType = rv.Extension.ToString();
     Response.BinaryWrite(rv.Image);
     Response.Flush();
     Response.End();
 }
예제 #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string        ID = Request.QueryString["VideoID"].ToString();
        RegisterVideo rv = new RegisterVideo();

        rv.PKVideoID = Convert.ToInt32(ID);
        rv.GetVideoFromID();
        Response.Clear();
        Response.Buffer = true;
        Response.AddHeader("content-disposition", ("inline;filename=" + rv.VideoName));
        Response.ContentType = rv.Extension.ToString();
        Response.BinaryWrite(rv.Image);
        Response.Flush();
        Response.End();
    }