Download JasperServer for Apex
Hi all
my need is to directly call a jasperrepor in an apex and download/preview the pdf application.
I found many times procedures using utl_http, dbms_lob, owa_util and wpg_docload as:
- http://damien.antipa.at/2011/11/04/apex-and-jasperserver-tunnel-plugin/
- An another Blog of Oracle: JasperReports in Apex
It seems to work fine, but on line
owa_util.mime_header('application/pdf');
This error is triggered
ORA-06502: PL/SQL: digital error or value
ORA-06512: at "SYS." OWA_UTIL", line 356
ORA-06512: at "SYS." HTP", line 1368
ORA-06512: at "SYS." HTP", line 1443
ORA-06512: at "SYS." HTP", line 1735
ORA-06512: at line 76 level
I ' am works with Application Express 4.1.1.00.23 and Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
Thank you all for any help or suggestion.
PS: my second necessity will add a line like this
HTP.p ('Content-Disposition: inline ;');)
to preview the pdf document in the browser without the open/save dialog box, I'm on the right track?
Hi OraclePSP,
Please try the following code:
procedure JasperReport ( p_report_name varchar2 default 'Blank_A4' , p_parameter varchar2 default '&ID=850' , p_output_format varchar2 default 'pdf') is g_user_agent VARCHAR2(255) := 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/A.B (KHTML, like Gecko) Chrome/X.Y.Z.W Safari/A.B.'; v_url varchar2(4000); v_request sys.utl_http.req; v_response sys.utl_http.resp; v_file blob; v_download raw(32767); v_mime_header varchar2(64) ; nm owa.vc_arr; vl owa.vc_arr; BEGIN -- init the cgi environment nm(1) := 'DUMMY_JUST_TO_SET_UP_OWA_UTIL'; vl(1) := 'WHATEVER'; owa.init_cgi_env( nm.count, nm, vl ); v_url := 'http://myUser:myPwd@myHost:myPort/jasperserver/rest_v2/reports/'||p_report_name||'?'||p_parameter; v_request := sys.utl_http.begin_request(v_url); sys.utl_http.set_header(v_request, 'User-Agent', g_user_agent); v_response := sys.utl_http.get_response(v_request); dbms_lob.createtemporary(v_file, TRUE, dbms_lob.session); LOOP BEGIN sys.utl_http.read_raw(v_response, v_download); dbms_lob.writeappend(v_file, utl_raw.length(v_download), v_download); EXCEPTION WHEN sys.utl_http.end_of_body THEN EXIT; END; END LOOP; sys.utl_http.end_response(v_response); owa_util.mime_header('application/' || nvl(p_output_format,'octet'), false); htp.p('Content-length: ' || dbms_lob.getlength(v_file)); htp.p('Content-Disposition: inline; filename="' || p_report_name || '.'|| p_output_format ||'"'); owa_util.http_header_close; wpg_docload.download_file(v_file); dbms_lob.freetemporary(v_file); END JasperReport;
This has something to do with the CGI environment initialization. (I used owa_util.mime_header several times in versions of Oracle Database 11 g, but not been confronted with this error)
Reference: https://asktom.oracle.com/pls/asktom/f?p=100:11:P11_QUESTION_ID:347617533333
Also do a forum search or google search you will find many discussions and links related to the same topic.
I hope this helps!
Kind regards
Kiran
Tags: Database
Similar Questions
-
Where can I download aria_people_search_installer for Apex 4.2?
Where can I download aria_people_search_installer for Apex 4.2?
All the links to it that I could find archives are non-existent...
Thank you
Mayura
Check your emails.
-
Download link for BLOB content on the apex report
Hi guys,.
I have a simple form where the user can attach file and save records. I iterate on wwv_flow_files and download the file and save it to a custom table that has the BLOB column. On another report page I view downloaded file Details. What I need is, there must be a column with the download link when clink user the link file should be downloaded. How can I do this?
Really grateful if someone can help me on this.
Thank you guys.See The BLOB Support in forms and reports.
There is a tutorial OBE which followed the introduction of the declarative BLOB support in 3.1 as well. (An earlier version, but it is still relevant for APEX 4.x.)
(Please make an effort to check out the documentation and search carefully on the forum for the previous coverage of a topic.) "This is a much discussed question.)
-
Hello
I have a problem with the plugin save before exit that I downloaded from Skillbuilders. As I use Oracle APEX version 4.0.2 and Oracle 10 g r2 database; so I downloaded one that says "Save before release (version 3.0.1 for APEX 4.0)" skillbuilders and follow-up of their documentation to import the plugin and use it.
My problem is that even if I do not make any changes to data in the form and go to another tab. the alert message always appears, and by the way, I have an element of list manager on my form and it gets highlighted. So, even if I make the changes or do not change; still, the alert message is displayed and highlights the element of list manager. I think maybe the problem is to have a crèche in the form list item. I have reproduced the same problem in my personal workspace. Here are the details.
http://Apex.Oracle.com/pls/Apex/f?p=55129
Details of the workspace
Name of the workspace: raghu_workspace
username: orton607
password: orton123
App # 55129
Page: 2 - has the element of list manager.
Page 3 - works fine without the element of list manager
Please help with possible suggestions.
Thank you
Orton
Orton,
I have connected to the workspace you and added a replacement JS file that corrects this error.
If please, give it a whirl and let me know if you find other problems with it.
It is to the 3.0.2 version of the plugin and I do not know if this even fix will work for your local Apex version earlier.
When you are ready to go to the APEX 4.0.2 Please contact me directly for assistance. In the meantime, I'll work on the creation of a patch for this kind of new downloads of the plugin will contain this change.
Greg
-
Download iTunes for Windows 10
I am trying to download iTunes for Windows 10 and get these two messages:
The feature you are trying to use is on a network unavailable resource.
And...
Cannot remove the older version of iTunes. Contact your technical support group.
Can someone please help?
Kind regards
Fred.
Take a look at this trick of CSA provided by the user to help with iTunes and Windows troubleshooting. Take the time to read through the tip of all, and then follow the instructions to your problem. Troubleshooting problems with iTunes for Windows updates
Turingtest2 has compiled the most comprehensive list of iTunes and Windows troubleshooting tips. You should be able to get your problem fixed with this tip sheet.
-
Where can I download itunes for Linux OS Ubuntu?
Where can I download itunes for Linux OS Ubuntu?
There is not an iTunes for Linux OS
-
There are several sites that offer downloads of Firefox.
I don't trust anything but mozilla.orgBut I can't find a download button on mozilla.
I use Linux because my firefox on Windows 7 no longer works and the default download seems to be a Linux version of firefox.
How can I download a version of windows?
Why Firefox stop working. I have download Tunein Radio - program - and it looked as if he was installing junkware.
I stopped the download but it seems to have already installed what is called the file opener. I uninstalled fire opener.That may have caused the problem
Hello, you will find the download links for all supported systems and languages to https://www.mozilla.org/firefox/all/
If you think that the problem on your system is caused by malware, it is probably advisable to run a full scan of your system with security tools like the free version of malwarebytes & adwcleaner, which are specialized in the adware and browser hijackers.
Fix Firefox problems caused by malicious software -
where can I download firefox for arnova 10 b g3
may seem to firefox for my tablet.where, I can download firefox for arnova 10 b g3
The best way to download the latest Firefox comes from google playstore. The link is: https://play.google.com/stor/apps/details?id=org.mozilla.firefox & hl = in
-
Cannot download Addons for thunderbird
For centuries tried to download addons for thunderbird (31.0, Linux i386)
For example, I tried to download the dictionary of British English but by clicking on the download button does nothing
In the browser console there is always this error, when I try to download
Timestamp: 26/08/14 03:37:02
Error: NS_ERROR_FACTORY_NOT_REGISTERED:
Source file: https://addons.cdn.mozilla.net/static/js/impala-min.js?build=268b304-53ed3973
Line: 1I tried a new profile and starting with all installed addons disabled but no avail, this problem occurred not only on my current distribution (Ubuntustudio 14.04 i386), but also on Mint 16 64-bit (on another system) and xubuntu 14.04 before that.
Whenever I reinstalled thunderbird, try to download addons using the addons page failed.
You can download the XPI files in a browser and install?
-
How can I download FF for Windows 7 on Linux and CD machine?
The Windows machine is new and without a connection to the internet. It is only on a private network. In the past, I could select the Linux Ubuntu 8.04 Firefox for Windows, download it here and create a CD. The CD has been used to install Firefox on the Windows machine. It has served me flawlessly for several years.
The main download page decides now that I can only download a version of Linux. The download page for the languages and systems does not allow selection of English-United States.
Is there a trusted site where I could download Firefox for Windows 7 (32 bit), preferably worm. 26.0?Hello
You can try to get here:
You can not download from here?
-
I am not able to download apps for my iPhone on the App Store. He just 'waiting '. But never starts the download. I tried with wifi and mobile data. The two are not downloading the applications Can u find out what's wrong? I use iPhone 5s
I had the same problem. At the same time hold the screen lock button and the home button until your iPhone restarts. That solved the problem for me.
-
I need to download Garageband for snow leopard 10.6.8 where can I find it?
I need to download Garageband for snow leopard 10.6.8 where can I find it?
https://iTunes.Apple.com/us/app/GarageBand/id682658836?MT=12
-
Please give me the download link for md313 training camp.
Please give me the download link for md313 training camp
Unfortunately, I can not find this file.
Please help me.
Hello alireza2003,
Thank you for using communities of Apple Support.
I don't know what exactly you are trying to accomplish, but if you download Bootcamp for Windows 8.1 support software, and then follow the steps below.
Download the software supported for Windows 8.1 or later
- Make sure that your Mac is connected to the Internet.
- Open Boot Camp Assistant, located in the Utilities folder of the Applications folder.
- Uncheck all options in the Boot Camp Assistant window, except the ability to download the latest version of Windows software Apple support. Then click on continue.
If you don't see this option, choose Action > download the Windows Support software in the menu bar. - Make sure that your USB flash drive is displayed as the destination drive. Click on continue, and then enter an administrator name and password, if prompted. Boot Camp Assistant then downloads Windows supported software for this drive:
Problems?
- If the wizard does not see your USB flash drive, click Go Back and make sure that the drive is connected directly to the USB port on your Mac, not to a screen, keyboard or hub. Disconnect and reconnect the drive, then click on continue.
- If the wizard says that your USB key cannot be used, ensure that it is properly formatted.
- If the wizard says that it cannot download the software due to a network problem, make sure that your Mac is connected to the Internet.
- If the wizard says that the Windows support software could not be saved on the selected disk, make sure that your USB has a capacity of storage to the last 8 GB.
If you do not see some Mac functionality if you are using Windows on your Mac
Take care.
-
Please allow me to download drivers for laptop links
Please allow me to download drivers for laptop links
It has:
Hello:
Here is the link to the support page and drivers for your laptop:
-
It is even possible to securely download Skype for Linux?
Download page redirects to HTTPS, http, there is no signatures or hashes that I can find, and of course Linux does not have Authenticode. Did I miss a secure way to download Skype for Linux, or there is no such thing?
Found an answer: forget skype.com and install instead of the Canonical partner repository. I thought I tried that before and ended up with a version that didn't work at all, but it seems fine now.
Maybe you are looking for
-
Why is the background on my page firefox back instead of white
I tried everything I could think of to fix this problem without success, please help.
-
How to unlock a mini ipad won't let me slip on after it says Hello
I can't get my ipad mini to unlock, when he says hello and allows you that know to drag you cannot drag
-
When you enter a web page (for example, www.aol.com) I would normally hit the ENTER button on my keyboard and opens the Web page of aol. However, using Firefox 4.0.1 on my desk, I have to enter the webpage (e.g., www.aol.com) and then use the mouse t
-
HP Envy M7-K111DX: password on HP Envy OS Windows 8.1
I hope it's good advice for that matter. I have a brand new HP Envy M7-K111DX. I put the password for, but when I put in what I thought, it was the password, it tells me it is incorrect. I tried many variations. I foolishly do not write it down but