Any tricks to store pdf file generated via jasper to oracle tables.

i need to generate pdf file ..for records in a cursor..
So i use jasper integration kit ... to accomplish the same...
issue is .. i need to press a button and then pdfs file shoudl be generated...and stored in a table as a blob..My process does this..
But since the process can be fired only on condition. on load before header...
The result is i get my pdf file generated and stored in table ..but the page is a blank page..seems like it is some jasper page..
http://127.0.0.1:82/apex/f?p=132:267:3324851978466855::::: The page looks empty...I will not want it to look empty...
i will like after pressing a button immediatley it shows a page processing and when processing is done... it shifts to other page...
I am putting the part of code which generates the pdf file ...any guidance or help shall be appreciated..
So i hope you understood the issue..*Issue is when button is pressed i see a blank page..THough the below process is fired pdf file genrated and stored in oracle tables..as blob.. I will like instead of blank page it displays me some othe page..say like processing and once done it shoudl say processing complete..*
Any guidance will be kindly appreciated..
Thanks paul johny
Below you will see the stored procedure i use..to generate the pdf files...
create or replace procedure lordslave is
cursor c1 is select subscribe_no from subscribers
where subscribe_no > 296;
l_blob BLOB;
l_mime_type VARCHAR2 (100);
begin
for xxx in c1
loop
begin
--xlog ('PRC_GET_REPORT_TUNNEL', 'url (orig):' || 'http://localhost:84/JasperReportsIntegration/report?_repName=test_repFormat=pdf_dataSource=def1_outFilename=tes.txt_repLocale=de_DE,repEncoding=UTF-8');
xlib_jasperreports.set_report_url ('http://192.168.1.3:84/JasperReportsIntegration/report');
xlib_jasperreports.get_report
(p_rep_name => 'subinvx',
p_rep_format => 'pdf',
p_data_source => 'default',
p_rep_locale => 'de_DE',
p_rep_encoding => 'UTF-8',
p_additional_params => 'Psubscribe_no='||390,
p_out_blob => l_blob,
p_out_mime_type => l_mime_type
BLOB_LOADB (mid(),xxx.subscribe_no,'SUBSCRIBERINVOICE','mfilename',l_mime_type,l_blob);
-- release resources
DBMS_LOB.freetemporary (l_blob);
-- stop rendering of APEX page
apex_application.g_unrecoverable_error := TRUE;
EXCEPTION
WHEN OTHERS
THEN
xlog ('PRC_GET_REPORT_TUNNEL', SQLERRM, 'ERROR');
RAISE;
END;
end loop;
end;

All you need to do - is that you should use the column data type as Long Raw.Why would you recommend using LONG RAW which has been deprecated in favour of BLOB for years?
You can find a simple example of inserting a file into a BLOB column using JDBC here. The Oracle JDBC docs are also worth a read. Find out more.
Cheers, APC
Blog : http://radiofreetooting.blogspot.com/

Similar Messages

  • Store Pdf file

    Hi,
    Oracle Form 6i,
    Oracle Database 11g.
    Is there any way to store pdf file from user client machine without transfer the file to OS of database?
    Regards,

    In Forms 6i you can create an item of type OLE Container to store a PDF file.
    However, I do not recommend this. You will never be able to retrieve the document in any other way than via Forms again. You cannot simply get the value of the BLOB column and store it somewhere as a PDF file. When using an OLE item, Forms "serializes" the data (whatever that means ) before storing it in the database. Also, OLE is obsolete in later versions of Forms.
    >without transfer the file to OS of database
    You don't have to transfer to the database server per se. Any file server will do, as long as the database has access to the directory (via CREATE DIRECTORY). This would be my preferred way to do it.

  • Adobe Acrobat XI pro version, Windows 7, running on iMac parallels, converting pdf to a pdf with reduced size is not possible, error: error in converting the file! What to do? Its a bit annoying not to be able to store pdf files in reduced size, any idea?

    Adobe Acrobat XI pro version, Windows 7, running on iMac parallels, converting pdf to a pdf with reduced size is not possible, error: error in converting the file! What to do? Its a bit annoying not to be able to store pdf files in reduced size, any idea?? Thanks, Jörg

    Hi Jorg ,
    Are you trying to reduce the file size with the "Reduced size PDF" in the save as other option.
    Give it a try if you haven't done it prior.
    Open that PDF>File>Save as Other>Reduced size PDF.
    If possible ,please share the snapshot of the error message with us so that we can have a look in order to assist you further.
    Regards
    Sukrit Dhingra

  • Where is a PDF file, generated by Agent (BIEE11g), stored?

    Hi,
    In BIEE11g, I created an Agent for scheduling to generate PDF files from Analysis.
    In tab: "Delivery Content", I choose PDF in field "Format", and BIEE will automatically chooise option "Deliver as attachment".
    At the same time, in tab: "Destinations", I just choose "Home Page and Dashboard" for field: "User Destinations".
    After scheduling time, an Alert is generated, and there is data and graph embedded in the content of the Alert. However, I don't find any URL for downloading PDF file. I want to make use of BIEE Agent that so that I can keep snapshot data for the report.
    Anyone know where where is the PDF file, generated by Agent (BIEE11g), stored?
    Thanks

    A nice way to achieve this is to export the reports to the server's filesystem using the Actions tab > Invoke Server Script. On a Windows server you can write a little VBScript or Javascript and pass it the PDF file which then gets saved to disk. I have some code if you are interested - contact me via my blog.
    Paul

  • HT5663 How to store PDF files in iCloud?

    Is there a way to store PDF files in iCloud? I see that Preview supposedly stores PDF's in iCloud, but when I try it, I cannot find the file in iCloud.

    Sorry AMCarter3, my bad.  While it used to be in GoodReader they apparently removed it some time ago, supposedly for some legal reasons?
    I too use GoodReader primarily with dropbox and box so had not noticed it was gone.
    As an aside, for those apps that support iCloud storage, if you have a Mac, enable Documents & Data in the iCloud control panel.  That will make a folder on your hard drive, named "Mobile Documents" that is your local mirror of your iCloud folders.  Apps that sync their content to iCloud will make a folder for themselves when they first conntect to iCloud, and that folder will in turn get created as a sub-folder in Mobile Documents on your Mac (I still have my one for Goodreader, "JFJWWP64QD~com~goodiware~GoodReader", along with ones for Pages, Numbers, and a host of others). 
    You can then drag and drop any file you wish into that folder (as long as it is a file type supported by the app), and they will then sync to iCloud.  You then use the app and download them for use on your iOS device from within the app.  That folder on your Mac will be updated whenever it changes and your Mac has internet access to iCloud.
    But, for PDFs in Goodreader, yes, dropbox works great, and has their free companion app for OS X if you want things on your computer to sync automatically too.

  • Where to store PDF Files?

    Hello,
    I need to store PDF files on my application server. Where can I put them under the application.
    Thanks in advance

    I think it is a good idea NOT to store it under (== within) your application. That makes updates of the app easier and the pdf's can be maintained without touching the webapp. And vice versa.
    WLS offers you the possibility to link any local drive to a web application. Just define this virtual drive in weblogic.xml :
    <virtual-directory-mapping>
    <local-path>c:\mydir\mypdfs</local-path>
    <url-pattern>/mycontext/*.pdf</url-pattern>
    </virtual-directory-mapping>
    -Kai

  • Store PDF File in Oracle database 10g

    Hi all,
    I want to store PDF File in Oracle database 10g,
    and then I want to access the pdf file using Oracle Developer 6i
    can anyone tell me how to do this,
    thanks in advance.

    This question has already been posted a lot of times.....
    See the following:
    http://forums.oracle.com/forums/search.jspa?threadID=&q=pdf+file&objID=f82&dateRange=lastyear&userID=&numResults=15
    Greetings,
    Sim

  • Any way to highlight pdf file in Intermedia?

    markup only works for text file,right?any way to highlight pdf file in Intermedia?Thanks.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Omar Alonso ([email protected]):
    interMedia/Oracle Text doesn't highlight the PDF or Word document.<HR></BLOCKQUOTE>
    I have the same problem. Will Oracle highlight word-documents in a future version? Or does anybody know another solution, i.e. a sdk from another company, which is built upon intermedia?
    thanks
    null

  • How to store PDF files in a table

    Hi,
    Is there a way to store PDF files in a table? Do I use LOB? How do I automatically read them if I want them to be available in a web site?
    Thanks.
    Camille

    U have to use either BLOBs (internal LOBs) or BFILEs (external LOBs). check out docu. at http://www.akadia.com/services/ora_blob.html

  • Store PDF files in database.

    hi all
    how to store PDF files in database and how to retreive plz guide me thanks in davance.
    sarah

    Sarah,
    so your pdf-document is stored in the database.
    we jump over step 4 what would be the code for sending the pdf-file to the database ...
    Step 5 open the stored pdf-file:
    Please create a when-mouse-doubleclick trigger on your filename-item:
    declare
    l_temp_file constant varchar2(255) := client_win_api_environment.get_environment_string ( 'Temp' ) || '\temp.pdf';
    begin
    if
    :pdf.filename is not null
    then
      if
        webutil_file_transfer.db_to_client ( l_temp_file, 'PDF', 'PDF', ' id_pdf = ''' || :pdf.id_pdf || '''' )
      then
        client_host ( 'cmd /C start ' || l_temp_file );
      else
        Message ( 'Failure while downloading ' || :pdf.filename || ' from the database. ' || dbms_error_text );
        Message ( ' ' );
        clear_message;
      end if;
    else
      Message ( 'No PDF-file selected.'  );
      Message ( ' ' );
      clear_message;
    end if;
    end;Save your form, compile and run it.
    Execute a query on the pdf-block and doubleclick your filename item.
    Now you can read your forms reference pdf direct from the database :).
    Regards

  • Problem store pdf file after downlod , message memery or store to little, the harddrive hav 1,3TB ;-

    problem store pdf file after download from web. Message, store to littel from reader11. Where ist tht problem or the solution?
    thanks

    Dear Mr Willener
    Thanks for the mail, that problem is soluted, press the botton, store as copy.I found it in secound  read
    A wish: In reader 9 is the solution better.
    Regards from Ilmenau
    L.Gleichmann
    [signature and auto-quote removed by host]

  • HT4847 how to store pdf files on iCloud ?

    how to store pdf files on iCloud ?

    Hi SirNicksolot
    After move the pdf to iCloud, how do I retrieve it from my iPad or other Mac computer after using Preview to move pdf file to iCloud?

  • How to passw protect my pdf files generated by Adobe Acrobat?

    I simply want to passw protect my pdf files generated by Adobe Acrobat. However the option as indicated by the helpdesk is not available in my pdf generator. I am working with apple? Can someone tell me how to pass protect my files?
    Can some one help me out here?

    Hi josr,
    You can password protect your files in Adobe Acrobat by choosing File > Properties when you have the PDF open, and clicking the Security tab. Here is a Help topic that goes into detail: Acrobat Help | Securing PDFs with passwords.
    If you don't have Acrobat, you're welcome to give it a try! Feel free to download a 30-day trial from http://www.adobe.com/products/acrobat.html.
    Best,
    Sara

  • Does Reader for iPad store PDF files for viewing later when offline?

    Does Reader for iPad store PDF files for viewing later when offline?
    I'm asking because I have my portfolio as a PDF and I want to take my iPad with me to interviews, where I won't have Internet access, to show my portfolio.
    Cheers,
    Matt.

    Awesome, I had hoped adobe were on the ball with this, but it's worth finding out beforehand.
    Thanks!

  • Is there any way to block PDF files sharing from iPad to any another device or cloud? We need to have certain PDFs visible and readable only from iPad.

    Is there any way to block PDF files sharing from iPad to any another device or cloud? We need to have certain PDFs visible and readable only from iPad.

    There are "container" apps emerging for the iPad.  Enough searching & I suspect there would be one for your needs. 
    All in one Application that emphasize security
    Good Collaboration Suite  Secure mobile app-to-app collaboration.
    The Good Collaboration Suite includes Good for Enterprise, Good Share and Good Connect secure mobile apps, simplifying access to email, calendar, contacts, tasks, instant messaging, browsing and document sharing. These apps are built using Good’s next-gen containerization   that includes secure data sharing between any Good secured app as well as app-level encryption independent of the device used."
    http://www1.good.com/applications/

Maybe you are looking for

  • Updated to newest itunes and now itunes store wont open. HELP!!!

    the title says most of it, but i tried everything! i know its not my firewall and i already cleared the dns or whatever. i cant understand the diagnostics so i'll post them here. PLEASE HELP! Microsoft Windows Vista Home Premium Edition (Build 6000)

  • Interesting Differences Between the iPad and Android Viewing Experience

    Well, interesting to me, anyway.  Here's some things I've noticed: Image Sequence The Android is the clear winner here, as the image sequence doesn't spin out of control when you lift up your finger like it does on the iPad.  In fact, the viewing exp

  • Using Move function in parabolic function

    I am looking at moving an object as a function of a quadratic equation- y=x*x Hence, need to be able to provide more than xfrom, yfrom and xTo and yTo - else it moves the object in a straight line from initial to final path. How do I provide the link

  • Can you hide a column in a table within a Pages document?

    Is it possible to have a table within a Pages document that allows you to hide columns..... I am trying to make a template for client quotations that requires a column containing discounts which needs to be hidden before I print. Haven't figured out

  • Microsoft ODBC data manager not found

    I created a Universe using Information Design Tool and published it to the repository. My data source was MS SQL server 2008. At this point I am able to view the result values in query in IDT. Now when I try to preview the query in SAP Dashboard Desi