0
Here is an example of Range-Specific Request in ASP.NET
, Sample
Posted on 5:33 AM by Softminer and filed under
C#
public void ProcessRequest(HttpContext context) { String FileName = "Test.mp4"; String FilePath = "Test.mp4"; System.Web.HttpResponse response = System.Web.HttpContext.Current.Response; response.ClearContent(); response.Clear(); response.ContentType = "video/mpeg"; response.AddHeader("Content-Disposition", "attachment; filename=" + FileName + ";"); response.AppendHeader("Access-Control-Allow-Origin", "*"); response.TransmitFile(FilePath); response.Flush(); response.End(); }
Here is an example of Range-Specific Request in ASP.NET
, Sample
Post a Comment