Oracle APEX display blob images directly in a report - image

I would like to know how one can display image type BLOBs uploaded as per this stack overflow question Use of BLOB type column in Oracle APEX, as images in a classic or interactive report instead of the normal download links.
I noticed that you can change the blob column attribute's Content Disposition field to inline, which then allows you to click through to another page where the image is displayed; but I want the image to display directly in the report without having to click on it.
The inline image displayed in a new page has the following url
https://apex.oracle.com/pls/apex/apex_util.get_blob?s=34564408462&a=4794&c=16789110088070077&p=2&k1=21&k2=&ck=D4QFl4Z9txsufDbmUOmKeirK4&rt=CR
which suggests that one might be able to use apex_util.get_blob. Does anyone know how this can be accomplished?

I have implemented same in classic report.
I followed this link http://docs.oracle.com/cd/E14373_01/apirefs.32/e13369/apex_util.htm#AEAPI129
This may help you to resolve your doubts

Related

Oracle Apex 19.x external URL based on items value

I'm using Application Express 19.2.0.00.18 with Oracle Database 12c Enterprise Edition Release 12.2.0.1.0.
In our applications (from 4.x) we use Jaspersoft Reports to create PDFs (invoices, labels, shipping documents, etc.) and we use a db function that take in parameters like report name and page items values and returns an html tag for link.
E.G.:
myFunction (myReportName, P01_ITEM_A ,P01_ITEM_B)
return
<img scr="/imagespath/pdf.png">
In this way it is possible to render where needed a clickable image to generate a report based on actual values of items. This solution is heavy adopted in our Apex applications but we are facing some difficulties trying to do the same in 19.x.
We need some help or suggestions in order to reproduce the same feature or to do the same in a different way.
As suggested by Littlefoot I can specify that "difficulties" are :
In Apex 4.x the query : select someFieldList ,myFunction (myReportName, P01_ITEM_A ,P01_ITEM_B) PDF from dual results in a report with the column PDF that is a clickable image (or text, the png is not mandatory). In Apex 19.x the same query results in a report with the column PDF rendered as Plain Text.
In Apex 4.x if I use the same query as Source attribute of a Display Only item it is rendered as a clickable link (text or image). In Apex 19.x the Display Only item is always not clickable.
The solution to both issues is the same. APEX 19.2 is a lot more advanced than APEX 4.x, and by default is more secure. For both Plain Text report columns and Display Only page items the default security setting is "Escape special characters":
This deliberately escapes any HTML tags in the contents to avoid potential XSS (cross-site scripting) security risks.
Simply unselect this setting and your links will appear as links again.

In Spotfire I want to display an image from the database

I have images stored in the database that I want to show in Spotfire. I've found how to display an image from a webpage but not one directly from the SQL database. Spotfire defaults to string type for the image. I tried editting it at the Info Link stage and forcing it to be a blob, but when I render it as an image I just see [..].
unfortunately Spotfire doesn't support BLOB or binary data.
what you can do is store your images on a server somewhere, then in place of the binary data in your database, store the URL to the image. you can then display it in a table as suggested in the Spotfire manual.

Including an image in a rich text field

I'm using Apex 4.2 and Oracle 11.g.
I have a rich text field that is used to store the body of an apex-generated eMail using SMTP_MAIl. The eMail generation process works fine. But my users want to include an image (jpg, bmp, etc.) into the body of the email, and don't want to include the image as an attachment.
On the Apex page, the rich-text field is defined as a Rich Text Editor / CDK Editor 3 / Toolbar = Full / Toolbar Expanded = Yes / Skin = Office 2003.
The rich-text field writes to a BLOB column.
If I just paste in the image (Shift / Insert) and then go to save the rich text field, I get a 500 - Internal Server Error.
Can you provide some help so that I can include an image in the rich text field? Ultimately, this will be included in the body of an html_email.
Thanks for your help.
The nature of my problem seems to be related to the 32K limit per Apex page item.
A colleague told me to look for a plugin. I found Enkitec's "CLOB LOAD" plugin. https://www.enkitec.com/products/plugins/clob-load
The plugin works well. It's easy to install, and the directions are pretty clear.
I stumbled on a few things to supplement CLOB_LOAD directions.
1) The table item that the Rich Text will write to has to be defined as a CLOB (and not a BLOB).
2) You have to create a Apex Collection using Apex's SQL Workshop. Be sure to include the Begin and End. The directions reference this.
3) If you already setup the form Apex page using the Apex Wizard and the DML page process is there, The "Return Key Into Item" is empty. At least it was with my Apex Page (4.2). That prevented the "Create" button from working. Once I set the "Return Key Into Item" value to the page item that relates to the primary key column of the table, it helped.
4) I also had to copy the page process for the "Save" button suggested by the plugin directions and assign the copied process to the "Create" button. Once I set those two items up, the plugin worked fine for updating as well as creating. It's a good solution.
Using this plugin, I can place a JPG, PNG, GIF, etc. into the Rich Text field, and it will write it to the CLOB, even when the total page item is greater than 32K.

How to display nvarchar datatype image to SSRS Image control?

Actually I am new in SSRS(SQL Server Reporting Service). I have to display signature image in SSRS Image Control.The signature image is stored in nvarchar datatype.If you required in other information then ask me.
Thanks in advance.
Danish
SSRS Image Control displays string image data fine, with no extra settings.
Just Drag an Image control in the Report and in Image Properties General tab,
choose Select the image source: as Database
and select the appropriate field in the Use this field: option. i.e the db field which holds the image data.
and select proper MIME in Use this MIME type:. Though any of them should work for you.

Print all Images in a ms access database

I Have developed a reporting tool using ms access. It is composed of 10 forms which allows the user to input data. I also allow the user to upload images to the database(images are uploaded to image folder and the link is store in the database table). The user could upload as many as 30 image files.
What i want to do is add another form which displays all the images the user has uploaded. Would this be possible in access i know in php you can use the mysql_num_rows function , just wondering is their a similar way to achieve this in access. Can anyone point me in the right direction ?
Basically when a form opens i want to run an Sql statement that retrieves all the images in the tables database and then shows the images on the form.
Using MS Access 2010:
\1. Create a continuous form, there is a wizard that will step you through. You can base the from on a table or query, a query is usually best. Ensure you include the field that holds the path to your image. You do not need to include the field with the path to the image on the form, it just needs to be part of the recordset.
\2. Add an image control
\3. Set the control source for the image control to the name of the field that holds the path to the image.
\4. View the form.
The continuous form can be a subform

Resources