# Perspective PDF Viewer to Display a object stored as Bytes in DB

**URL:** <https://forum.inductiveautomation.com/t/perspective-pdf-viewer-to-display-a-object-stored-as-bytes-in-db/58625>\
**Category:** General Discussion\
**Tags:** perspective, ignition81, database\
**Created:** [April 20, 2022, 1:12pm UTC](https://forum.inductiveautomation.com/t/perspective-pdf-viewer-to-display-a-object-stored-as-bytes-in-db/58625 "2022-04-20T13:12:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jgooding](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@jgooding](https://forum.inductiveautomation.com/u/jgooding)\
**Post date:** [April 20, 2022, 1:12pm UTC](https://forum.inductiveautomation.com/t/perspective-pdf-viewer-to-display-a-object-stored-as-bytes-in-db/58625/1 "2022-04-20T13:12:11Z")

</div>

I feel really frustrated. I have used Travis Cox Exchange Project to Upload my PDF File to a DB. I have a query that will return the scalar of the PDF Bytes. How do I get that to display in a perspective window?

I have searched and apologize if it is explained somewhere else.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 20, 2022, 1:17pm UTC](https://forum.inductiveautomation.com/t/perspective-pdf-viewer-to-display-a-object-stored-as-bytes-in-db/58625/2 "2022-04-20T13:17:00Z")

</div>

You either need to use the WebDev module, or try my Blob Server module beta:

> [@Automation Professionals' Blob Server Module](https://forum.inductiveautomation.com/t/automation-professionals-blob-server-module/57970):
>
> Automation Professionals is pleased to announce an alpha release of its new Blob Server Module. Available only for Ignition v8.1, here. The Blob Server Module provides a simple way to deliver images, PDF files, or other binary content from a database to your Perspective clients or other web applications. Without needing the WebDev module. All you need is a Named Query that has appropriate security settings and returns a single row with two columns: Content, and ContentType. Modest documentati…

{ You'll need to tweak your NQ to conform to the required output column names. Possibly also set permissions. }

---

<div class="post-metadata">

**Author:** ![jgooding](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@jgooding](https://forum.inductiveautomation.com/u/jgooding)\
**Post date:** [April 20, 2022, 7:37pm UTC](https://forum.inductiveautomation.com/t/perspective-pdf-viewer-to-display-a-object-stored-as-bytes-in-db/58625/3 "2022-04-20T19:37:58Z")

</div>

This looks really good and I was able to get it working in very short order. I wish I could do my development in a 10th time that you can make a whole module. But practice makes the user faster.

Do you know when or if you are going to require a paid license for the module?

GREAT JOB!!!

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 20, 2022, 8:52pm UTC](https://forum.inductiveautomation.com/t/perspective-pdf-viewer-to-display-a-object-stored-as-bytes-in-db/58625/4 "2022-04-20T20:52:13Z")

</div>

I just updated the other topic. I recompiled to make it free, formally.
