How to Download A file stored in SQL DB in Binary Format
I am simply storing uploaded file into a binary field in SQL Server but I also need to allow users to download it with Asp.NET. How can I do that ?
I am simply storing uploaded file into a binary field in SQL Server but I also need to allow users to download it with Asp.NET. How can I do that ?
The users have requested the option to “download” a csv file representation of GridView contents. Does anyone know how to do this without saving the file to the server but rather just streaming it to the user from memory?
This is my problem.
I load xml from my database and push it to the client using code.
But the problem is that the browser automatically opens that xml instead of offering it as a download.
In my application I am building a zip file for the User to download for some exported database information. The zip file is created when the user clicks a “generate data” button and I log the request in the database.
I have made a page that allows users to upload files to the server using a FileUpload Control and handling its event with this code
I hosted some mp4 videos on IIS. Although IIS 7.0 lists the video files, it doesn’t allow download of them and a 404 Not Found is returned. Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them … Read more
We have a lot of files, saved as binary in our SQL Server database.
I have made an .ashx file, that delivers these files, to the users.
Unfortunately, when the files become rather large, it will fail, with the following error:
I want to ask how to open a specific file (the file is out of the server, i have a relative path to it stored in config file) with its application, when clicking on a specific link button or hyper link…
I’m trying to set up a web api service that searches for a .pdf file in a directory and returns the file if it’s found.
When I click a button on the client side I want to invoke a public static webmethod on the server side using AJAX. The static method will create the appropriate file. After the file is created I need to download it to the client desktop. I’ve found John Culvinar’s jquery filedownload plugin but haven’t been able to implement it so far. I know that using this plugin also requires writing a cookie so that it knows that the download is complete. Where do I put this code in the server side? After creating the file? I’d be very glad if someone could show me a sample on this scenario, maybe on jsfiddle.net