Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to upload pdf file from sql to C#

How to upload pdf file from sql to C#

Scheduled Pinned Locked Moved C#
helpcsharpdatabasetutoriallearning
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    naylynn
    wrote on last edited by
    #1

    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

    V J 2 Replies Last reply
    0
    • N naylynn

      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

      V Offline
      V Offline
      vanikanc
      wrote on last edited by
      #2

      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.

      N 1 Reply Last reply
      0
      • N naylynn

        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

        J Offline
        J Offline
        jschell
        wrote on last edited by
        #3

        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.

        N 1 Reply Last reply
        0
        • V vanikanc

          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.

          N Offline
          N Offline
          naylynn
          wrote on last edited by
          #4

          Thanks friend! I was thinking this way. But I have no idea "How do this method "Example--- How store pdf file to SQl.. and how retrieve pdf file to C#... You can teach me-- how write this

          1 Reply Last reply
          0
          • J jschell

            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.

            N Offline
            N Offline
            naylynn
            wrote on last edited by
            #5

            Thanks friend

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups