How to upload pdf file from sql to C#
-
Hey Every Body! How do you do! I'm beginner of C# language. Now i want to save pdf file to sql and retrieve from there via C#. Someone could help me for this problem :) .. Thanks for every thing
For my 2 cents worth. There are many ways to solve this problem. One way, is to store the actual pdf file on server some where, and maybe store the path to where this file is located on the server, in the database. You can select out the path information information from database and retrieve the file accordingly. Another way, store the content in the database, and create the pdf on the fly when you retrieve the information from database. Thanks.
-
Hey Every Body! How do you do! I'm beginner of C# language. Now i want to save pdf file to sql and retrieve from there via C#. Someone could help me for this problem :) .. Thanks for every thing
naylynn wrote:
How do you do! I'm beginner of C# language
First step - learn basics of putting and getting stuff from the database. And do not use a PDF when learning that. Instead use int and string. AFTER you are comfortable with that then learn how to put and get a blob.
-
For my 2 cents worth. There are many ways to solve this problem. One way, is to store the actual pdf file on server some where, and maybe store the path to where this file is located on the server, in the database. You can select out the path information information from database and retrieve the file accordingly. Another way, store the content in the database, and create the pdf on the fly when you retrieve the information from database. Thanks.
-
naylynn wrote:
How do you do! I'm beginner of C# language
First step - learn basics of putting and getting stuff from the database. And do not use a PDF when learning that. Instead use int and string. AFTER you are comfortable with that then learn how to put and get a blob.