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     Extract .jpg from a BLOB column in DB2

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Extract .jpg from a BLOB column in DB2
 Login/Join
 
Member
posted
We are using WebFocus running on ZOS mainframe. I am looking for a solution for extracting a .jpg from a BLOB column to a temporary file to display on my report . We are using the Report Painter tool.
Any help will be GREATLY appreciated!



Thanks
Richard


Web Focus Developer Studio Ver 7.62
Windows XP platform.
mostly dynamically built reports
 
Posts: 5 | Registered: September 28, 2007Report This Post
Master
posted Hide Post
There is this on the forum.

https://forums.informationbuilders.com/eve/forums/a/tpc/...1057331/m/6331020932

A quick and dirty method would be to first of all define a BLOB in wf as ACTUAL and USAGE of A8000 (think this is the biggest wf can take) nb do not use TX defaults.

TABLE FILE BLOBFILE
PRINT BLOBFIELD
IF RECORDLIMIT EQ 1
ON TABLE SAVE
END
-RUN
CMD COPY SAVE.FTM SAVE.JPG
-RUN
-* now incorporate into stylesheet

now you will be extremely lucky to get this simplistic approach to work.

1. The A8000 field has trailing blanks that the JPEG viewer may disagree with.
2. The convert jpeg to BLOB routine and vice versa may trim off headers do compression etc. You really need to call the routine to do the job.
3. You may have EBCDIC ASCII coding / character set issues.

Good luck you are going to need it!



Server: WF 7.6.2 ( BID/Rcaster) Platform: W2003Server/IIS6/Tomcat/SQL Server repository Adapters: SQL Server 2000/Oracle 9.2
Desktop: Dev Studio 765/XP/Office 2003 Applications: IFS/Jobscope/Maximo
 
Posts: 888 | Location: Airstrip One | Registered: October 06, 2006Report This Post
Gold member
posted Hide Post
Hi Hammoj,
I tried saving the blob field. but am not getting the image but only the text of the jpg is coming in. Can you help what should I need to do for getting the blob images from oracle.
Appreciate if any one can help me in this.

 
FILEDEF PHOTO DISK /home/webfocus/ibi/apps/ifnw/PHOTO.FTM

TABLE FILE PI_FUND_MNGR_PHOTOGRAPH
PRINT PHOTOGRAPH
IF RECORDLIMIT EQ 1
ON TABLE SAVE AS PHOTO
END
-RUN
 


WF 8.0.0.9 Database : oracle

CURRENT:
WebFOCUS 8.0.0.9 /oracle 11 i

 
Posts: 51 | Registered: September 20, 2007Report 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     Extract .jpg from a BLOB column in DB2

Copyright © 1996-2020 Information Builders