How to retrieve pdf files from remote computer?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • weizz
    New Member
    • Jul 2011
    • 6

    How to retrieve pdf files from remote computer?

    I'm currently develop a wpf application.How ever I need to retrieve the pdf files stored in the database of remote computer through web service.

    My questions now is that how can I retrieve the files from the remote computer to my wpf application? What is the control to use in wpf app in order to display the pdf file? It is through web browser?
  • johny10151981
    Top Contributor
    • Jan 2010
    • 1059

    #2
    You will have to go through several issues:-
    No 1: Its very important for who ever want to help you is

    What is your database server name?

    Comment

    • weizz
      New Member
      • Jul 2011
      • 6

      #3
      The database that I'm using is Microsoft SQL Server 2008.

      Comment

      • weaknessforcats
        Recognized Expert Expert
        • Mar 2007
        • 9214

        #4
        Why not try FTP?

        FTP has worked out all the issues that arise from file incompatibiliti es caused by the various OS's in use.

        Comment

        • weizz
          New Member
          • Jul 2011
          • 6

          #5
          How to use FTP in this case?Can give me some examples?thanks .

          Comment

          • weaknessforcats
            Recognized Expert Expert
            • Mar 2007
            • 9214

            #6
            You would set your program up as an FTP client or you would purchase an FTP client and call it from your code.

            Google has a ton of references for FTP clients.

            Comment

            • johny10151981
              Top Contributor
              • Jan 2010
              • 1059

              #7
              Try to retrieve the data from database,

              then create the file in your server and then try transferring using ftp or whatever solution you like.

              you will be able to find ftp client source free online, and ofcourse server too. you can modify a server to provide file service reading from database

              Comment

              • weizz
                New Member
                • Jul 2011
                • 6

                #8
                So if I'm using the FTP, does it mean that I need to download the file from the server then just ca display the file in my application?

                Comment

                • weaknessforcats
                  Recognized Expert Expert
                  • Mar 2007
                  • 9214

                  #9
                  That's correct. FTP will fetch a copy of the file that you can write to your hard disc. Your C code reads the file from the disc.

                  Comment

                  Working...