how resume able file download in asp.net with c# -> best way (for large files too)
see the below handler :
see the below handler :
I need to construct and send a zip to a user.
File name and extension are empty. Please help.
I am using the code below on an aspx page on button click event to generate csv file. This works when I do not name my file but when I try to use:
Response.AddHeader(“Content-Disposition”, “attachment;filename=myfilename.csv”);
I’m trying to write to a text file in memory and then download that file without saving the file to the hard disk. I’m using the StringWriter to write the contents:
I’m trying to get the absolute path of certain files in a C# class. Server.MapPath works great of course for ASPX and their code-behind pages, but that doesn’t exist in another class file. I tried HostingEnvironment.MapPath(), but that complains that the relative virtual path isn’t allowed. Any thoughts?
I have an image in D Drive like “D:Image1.tiff”. I want to read this file and write it in an another location, for example in the path “D:Project”. How to do this using Memory Mapped File?
I would like to temporarily impersonate a domain user account to read in a file on a network drive from an ASP.NET site.
I would like to know if it is possible to parse .eml and .msg files in dot net (preferably from a memorystream) such that I can use them on an ASP.Net page.
I have a CSV file which looks like this basically: