Write .vsdx file to Response stream using asp.net

219 views Asked by At

What I tried so far

Response.AddHeader("Content-Disposition", "attachment; filename=" + file.Name);
Response.AddHeader("Content-Length", file.Length.ToString());
Response.ContentType = "application/vnd.ms-visio";
Response.WriteFile(file.FullName);
Response.End();

Here file is of FileInfo type, I am not sure how to write this .vsdx file to response Stream.

0

There are 0 answers