[SOLVED] Image stored in a BLOB field on MSSQL server
Is there any way in WebFocus to display images stored in a BLOB (IMAGE) field in MS SQL databse? Or convert them into real images on the disk? Thanks in advanceThis message has been edited. Last edited by: FP Mod Chuck,
WF 8.0.6 Windows Server 2003
August 06, 2007, 11:58 AM
Kerry
Hi Alek,
Has this issue been resolved?
I am wondering, can you please provide us a little more details on what you are trying to accomplish?
Also, as always suggested here, can you please update your signature? This way we know the environment you are working on and it will help all to provide constructive suggestions.
Thank you in advance for sharing with all.
Cheers,
Kerry
Kerry Zhan Focal Point Moderator Information Builders, Inc.
August 06, 2007, 12:19 PM
Alek_
Thanks Kerry, I have resolved it by executing a Java application from WebFOCUS procedure which converts a BLOB binary field into an image file on the disk. Then I use a path to the image in my PDF report.
WF 8.0.6 Windows Server 2003
November 08, 2007, 01:17 PM
Richie
Alek,
Can you show me how you were able to execute a JAVA Application?
Thanks Richard
Web Focus Developer Studio Ver 7.62 Windows XP platform. mostly dynamically built reports
Alek, I have a very similar requirement to read an Image out of BLOB/IMAGE field from sql server using an ID. Is this the preferred way to read/display the image ? I'm wondering if there's a way to not save but display it in HTM page so we can avoid the multiple images in the app folder, specially if they're confidential/classified. Thanks in advance.
...requirement to read an Image out of BLOB/IMAGE field from sql server...
Here is an example running against the Microsoft SQL Server AdventureWorks2014 sample db:
TABLE FILE PRODUCTPHOTO
"Product Photos"
PRINT PRODUCTPHOTOID
LARGEPHOTO
WHERE PRODUCTPHOTOID EQ 76
-**************************
-* Lines between asterisk lines required for BLOB image support
-* for HTML and DHTML formats.
ON TABLE SET HTMLEMBEDIMG AUTO
ON TABLE SET HTMLARCHIVE ON
ON TABLE SET HTMLCSS ON
-**************************
ON TABLE SET STYLE *
INCLUDE = endeflt, $
TYPE=DATA,COLUMN=LARGEPHOTO,IMAGE=(LARGEPHOTO),SIZE=(2 1.5),$
ENDSTYLE
END
This message has been edited. Last edited by: David Briars,
May 10, 2017, 01:53 PM
vaayu
Thank you David. This helps a lot!
quote:
TABLE FILE PRODUCTPHOTO "Product Photos" PRINT PRODUCTPHOTOID LARGEPHOTO WHERE PRODUCTPHOTOID EQ 76 -************************** -* Lines between asterisk lines required for BLOB image support -* for HTML and DHTML formats. ON TABLE SET HTMLEMBEDIMG AUTO ON TABLE SET HTMLARCHIVE ON ON TABLE SET HTMLCSS ON -************************** ON TABLE SET STYLE * INCLUDE = endeflt, $ TYPE=DATA,COLUMN=LARGEPHOTO,IMAGE=(LARGEPHOTO),SIZE=(2 1.5),$ ENDSTYLE END