Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [Technique] Question: How to Render PDF Stored within an Oracle BLOB Field?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Technique] Question: How to Render PDF Stored within an Oracle BLOB Field?
 Login/Join
 
Master
posted
I've reviewed the documentation, and see that WebFOCUS supports images (GIF/JPEG formats) stored in Oracle BLOB fields.

In my Oracle BLOB field I have a PDF document stored.

I couldn't find any documentation on this, nor any FocalPoint posts.

Thought I'd check to see if I missed a doc, or if anyone has any suggestions.

My basic requirement is to have the PDF (contents of the BLOB column) available from my WF report (could be link/embedded/iframe...).

In thinking about this, I can't quite wrap my mind around how to pull the Oracle BLOB contents (the column for one given row) into my WF web application.

This message has been edited. Last edited by: David Briars,




Pilot: WebFOCUS 8.2.06 Test: WebFOCUS 8.1.05M Prod: WebFOCUS 8.1.05M Server: Windows Server 2016/Tomcat Standalone Workstation: Windows 10/IE11+Edge Database: Oracle 12c, Netezza, & MS SQL Server 2019 Output: AHTML/XLSX/HTML/PDF/JSCHART Tools: WFDS, Repository Content, BI Portal Designer & ReportCaster
 
Posts: 822 | Registered: April 23, 2003Report This Post
Master
posted Hide Post
I don't have any good suggestions for you, and I can't think of any style sheet commands that would make a file accessible from a blob.... The best that I can think of, is if you could some how extract the PDF from the blob and save it to the server. then you could put a direct call to the file. But again, I don't think SQL pass thru would work for this as SQL OUT is a table format, not a file format. This might be something you will need to open a Case / NFR for...


Eric Woerle
8.1.05M Gen 913- Reporting Server Unix
8.1.05 Client Unix
Oracle 11.2.0.2
 
Posts: 750 | Location: Warrenville, IL | Registered: January 08, 2013Report This Post
Master
posted Hide Post
I've opened a case with IB on this question.

The HelpDesk has reported back that they have seen this requirement before, and have provided a solution in these cases.

They will be getting back to me with the solution soon.

I will plan to update this thread accordingly.

This message has been edited. Last edited by: David Briars,
 
Posts: 822 | Registered: April 23, 2003Report This Post
Virtuoso
posted Hide Post
Our solution was to write a tomcat servlet to retrieve those BLOB's. That way you can drilldown to them using an URL-reference in your report with the necessary BLOB-id's automatically substituted.

It would be nice if IBI provided something like that though.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Master
posted Hide Post
That is great that you developed a tomcat servlet to retrieve the BLOB formatted data. (For various reasons, we wouldn't be able to do this at our site.)

Thank you Eric and Wep for your thoughts and comments.

This message has been edited. Last edited by: David Briars,
 
Posts: 822 | Registered: April 23, 2003Report This Post
Master
posted Hide Post
Following up...

We came up with a technique that we published to the 'Tips and Techniques' site:
http://www.informationbuilders...ocus-web-application




Pilot: WebFOCUS 8.2.06 Test: WebFOCUS 8.1.05M Prod: WebFOCUS 8.1.05M Server: Windows Server 2016/Tomcat Standalone Workstation: Windows 10/IE11+Edge Database: Oracle 12c, Netezza, & MS SQL Server 2019 Output: AHTML/XLSX/HTML/PDF/JSCHART Tools: WFDS, Repository Content, BI Portal Designer & ReportCaster
 
Posts: 822 | Registered: April 23, 2003Report This Post
Virtuoso
posted Hide Post
That's possibly a bit easier than writing a Java servlet :P

Interesting that a TABLE FILE on a BLOB field downloads the BLOB to the FOCCACHE while it displays the file-name! I did not expect that. Good to know.


Now, your solution still won't work for our specific case (although it comes pretty darn close): In our case the stored BLOBs can be all kinds of files (PDF, Word documents, Excel sheets, JPEG and TIFF images, ZIP-files, etc.) and they're stored in the database without a hint of the file-type. It's a mess!

Lucky for us, the Java servlet API is capable of determining the MIME-type from the file(-name), which we then pass on to the HTTP-response header and everyone is happy.

I don't see a way to do that with WebFOCUS, that would be nice to add if possible.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [Technique] Question: How to Render PDF Stored within an Oracle BLOB Field?

Copyright © 1996-2020 Information Builders