Display BLOB image from Oracle in Jasper Report - oracle

I am trying to show image from BLOB data in Jasper Reports.
Database : Oracle 12c
Jasper : Jasper iReport 4.7.1
I follow these steps :
Change the field class of the column fetched from Database .
Field Class = java.io.InputStream
Add a image in the report and change the expression class to : java.awt.Image
Still doesn't work.
It says that :
Error displaying report page. See the console for details.
Then when I check iReport console it doesn't show anything.
How can I fix this?

Related

Jasper blob embedding issue from APEX

I have a pdf report designed using ireport designer 5.6.0 and deployed that jxml file to apex server and displaying the pdf report from apex on the button click.
The report works fine with in ireport designer and in my report i have a image field from the oracle table and it is referred to the blob column. When running the report from oracle apex the report is not displaying and throwing error like
SEVERE [http-nio-8080-exec-5] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [ReportWrapper] in context with path [/jri] threw exception
java.lang.RuntimeException: Error executing SQL statement for:
The above error is occuring if i subsitute blob column in the sql stmt. Suppose if i remove blob column from sql stmt then the report works fine in apex.
Not sure what could be the issue.
Thanks,
I tried changing field expression type within ireport, but nothing work when running from oracle apex, as it keeps complaining about error in the sql stmt.

Apex - application static files not found

I have installed recently Apex 19.2
Apex works fine, however my applications don't show any static application files.
I uploaded an image to my workspace app and I insert it in a region as follows :
<img src="#APP_IMAGES#Logo.png" />
When the page loads, the substitution string is parsed and I have an error :
9#GET https://www.example.com:8080/ords/useralias/r/100/files/static/v2/Logo.png 404 (Not Found)
I tried this but it's not working
#apex_epg_config.sql C:\My\01-Tools\04-Apex (Apex home)
Also here is my standalone.properties file :
jetty.secure.port=8080
standalone.context.path=/ords
standalone.doc.root=C\:\\My\\01-Tools\\03-Ords Installation\\ords\\standalone\\doc_root
standalone.scheme.do.not.prompt=true
standalone.static.context.path=/i
standalone.static.path=C\:\\My\\01-Tools\\04-Apex\\apex\\images
ssl.cert=C\:\\My\\01-Tools\\03-Ords Installation\\ords\\standalone\\certificate\\certificate.der
ssl.cert.key=C\:\\My\\01-Tools\\03-Ords Installation\\ords\\standalone\\certificate\\private.der
ssl.host=www.example.com
All the paths are correct.
Does any know how to solve that please ?
Thanks
Cheers,
Are you updating apex and using ords? If so, executing this command might solve your problem.
java -jar ords.war validate
this validates the instalation and the static files.

Oracle APEX 5 Classic Report's CSV Export Issue

Oracle APEX page with classic report redirects to blank page with following message after CSV download completes.
wwv_flow.show?p_flow_id=207&p_flow_step_id=11&p_instance=11672320678093&p_debug=&p_request=FLOW_EXCEL_OUTPUT_R330325816060382028_en
Although this issue is only occurring in Chrome browser version 75 and APEX version 5, it is working fine in APEX 4.2 and Chrome 75.
I am using this attribute of Classic Report to download CSV,
I had a similar problem,
and found myself replacing the JS behind the "download" link. instead of using window.location.href="" I have apex.navigation.redirect(...)
original:
<a href='javascript:window.location.href=apex.server.pluginUrl("SC95h...);'>Download</a>
updated:
<a href='javascript:apex.navigation.redirect(apex.server.pluginUrl("SC95h...));'>Download</a>
the short js doing the replacement (STATIC_ID is the static id for the report):
var loc = 'javascript:window.location.href=',
navi = 'javascript:apex.navigation.redirect(';
$('div#STATIC_ID div.t-Report-links a')[0].href =
$('div#STATIC_ID div.t-Report-links a')[0].href.replace('});','}));').replace(loc,navi);
This is a known bug - see this APEX forum question. The bug is fixed for APEX 18.2 and over, or there is a workaround is Hilary Farrell's response there:
In the region footer, add the following HTML markup in order to get a
"custom download link"
Download
(You would need to adjust the region ID.)

Spagobi Birt report show all data using filter giving errors

I am using SpagoBI BIRT reports. I want to add multiple filters in my report and want to show all data by default. Why do I get errors like:
Service Error: Cannot evaluate errors on parameter validation

Oracle ADF Image Upload

I tried all the things
Oracle Fusion Developer Guide 11g in working with oracle multimedia types
I am getting error in image upload with Oracle Multimedia Attributes....I am getting error in:
<af:inputfile tag with
<binding:convertOrdDomain bindingRef="{bindings.Image}">
No namespace grammer defined ..help me in detail
You are trying to save the uploaded image in database or application server..? What approach you have tried, if you have some sample code, please post so that we can look into it.

Resources