How to store PDFs file in database and how to show preview using the asp.net. the PDFs file is uploaded by control and then i need to show preview afterward i store into the database.
<input type="file" />
How to store PDFs file in database and how to show preview using the asp.net. the PDFs file is uploaded by control and then i need to show preview afterward i store into the database.
<input type="file" />
Generally, you can choose one of the following techniques:
URL
to the file. Latter, use theURL
for showing or downloading the fileBLOB
(B
inaryL
argeOB
ject) fieldEach of these, has advantages and disadvantages and it is up to your situation and you to decided which technique for use.
Fortunately, when we are using SQL Server for storing files we have one more option which can lead to better performance - Filestream Storage.
This type of storage is recommended in the following situations:
Since, rarely PDF files are smaller then 1 MB, I believe you should use this technique but:
You can check the following this tutorial in order to activate the storage.