# Open pdf from database blob

**URL:** <https://forum.inductiveautomation.com/t/open-pdf-from-database-blob/8311>\
**Category:** Ignition\
**Created:** [April 15, 2014, 1:28pm UTC](https://forum.inductiveautomation.com/t/open-pdf-from-database-blob/8311 "2014-04-15T13:28:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AJBerera](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@AJBerera](https://forum.inductiveautomation.com/u/AJBerera)\
**Post date:** [April 15, 2014, 1:28pm UTC](https://forum.inductiveautomation.com/t/open-pdf-from-database-blob/8311/1 "2014-04-15T13:28:51Z")

</div>

I have stored a pdf into a table and I’d like to open this into a pdf viewer. Doable?

---

<div class="post-metadata">

**Author:** ![dave.fogle](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@dave.fogle](https://forum.inductiveautomation.com/u/dave.fogle)\
**Post date:** [April 15, 2014, 3:47pm UTC](https://forum.inductiveautomation.com/t/open-pdf-from-database-blob/8311/2 "2014-04-15T15:47:55Z")

</div>

You'll first have to query the database to get the data. Then you'll need to write it to a temp folder you create somewhere on the local client machine. Once that's done you can point the pdf viewer to the file you just stored locally. You could then have a project shutdown script or something to make sure you clean up that temp folder every time you exit the project.
