Recent

Author Topic: Pdf file in the Database  (Read 2715 times)

elidorio

  • Sr. Member
  • ****
  • Posts: 295
Pdf file in the Database
« on: October 10, 2013, 04:19:06 am »
Hello,
How to save and retrieve a pdf file in the database. I'm using postgresql?

--
Edson
Lazarus 1.4.4 | FPC 2.6.4 | Windows / Linux Debian

kpeters58

  • Sr. Member
  • ****
  • Posts: 267
Re: Pdf file in the Database
« Reply #1 on: October 10, 2013, 04:48:34 am »
Hi Edson,

look here

http://forum.lazarus.freepascal.org/index.php/topic,16205.0.html

Assuming that you want to read and write your PDFs from/to your file system, make some small adjustments to the code posted above and you should be good to go.

Cheers,
Kai
« Last Edit: October 10, 2013, 06:39:38 pm by kpeters58 »
Lazarus 2.0.4/FPC 3.0.4/Win 64

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

 

TinyPortal © 2005-2018