filecontentresult Questions
3
Solved
I have a controller action that downloads a file from an azure blob based on the container reference name (i.e. full path name of the file in the blob). The code looks something like this:
public ...
Rafferty asked 23/6, 2011 at 7:7
7
Solved
Is there a way to stream a file using ASP.NET MVC FileContentResult within the browser with a specific name?
I have noticed that you can either have a FileDialog (Open/Save) or you can stream the ...
Lapierre asked 8/7, 2010 at 18:16
2
Solved
Need to download dynamic files which is returned from the api in the client side based on its type. This is what i have
My api controller it looks like this
public async Task<IActionResult> ...
Terenceterencio asked 6/1, 2021 at 9:48
4
So I'm returning a FileContentResult from an action like this:
return File(pck.GetAsByteArray(), "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "MyExcelFile.xlsx");
When cl...
Pepper asked 7/3, 2012 at 22:3
3
Solved
I'm generating a CSV from an MVC 3 website and using a FileContentResult to pass this to the user. This worked great but it took 30 seconds for the csv to generate and therefore 30 seconds before t...
Linguist asked 22/3, 2012 at 12:1
1
Solved
I wrote an action for a user to downoad a generated xml generated whithout having to write it on the server disk, but keep it into memory.
Here is my code :
public FileContentResult MyAction()
{...
Janejanean asked 18/4, 2013 at 14:48
1
Solved
I have an object of type System.Drawing.Image and would like to display this image in a view. What would be the best way to do this?
I have found some custom Html Helper methods that might fit the...
Belanger asked 18/7, 2012 at 17:18
0
I have an action that displays a pdf
public ActionResult MyPdf()
{
var response = pdfService.MyPdf(new PdfRequest() { SiteId = siteSession.ActiveSiteId });
return File(response.Pdf, "applicatio...
Lawrenson asked 3/8, 2011 at 17:25
1
© 2022 - 2024 — McMap. All rights reserved.