Is it possible to pass PDF (stored as BLOB) to PDFDocMerger

HI Folks.
Will PDFDocMerger Class allow you to pass in multiple PDF BLOBs as an input Stream Array?
Any pointers appreciated as I need to know if this is a non-starter.
I have many invoice PDFs stored as BLOBs in my database. I need a user to be able to select a bunch of these and have BIP merge them into one document.
Any help greatly appreciated.
Many thanks
Dogfighter

Hello Ike.
I have downloaded the IDE and I am following the installation steps.
I have performed step 3 and I have the following questions.
1) I can see a node in JDeveloper called XMLPublisherDataTemplate.java but not one named format template. Should I be able to? Also, could not find this in the IDE download folders. Where should I be looking.
2) I have executed the 'Run' on the XMLPublisherUtility.java node. The result was...
\j2sdk1.4.2_13\bin\java.exe -jar D:\NGC IT\Software\Oracle\Java Developer\jdev\lib\ojc.jar -source 1.3 -target 1.2 -noquiet -warn -nowarn:320 -nowarn:486 -nowarn:487 -deprecation:self -nowarn:560 -nowarn:704 -nowarn:489 -nowarn:415 -nowarn:909 -nowarn:412 -nowarn:414 -nowarn:561 -nowarn:376 -nowarn:371 -nowarn:558 -nowarn:375 -nowarn:413 -nowarn:377 -nowarn:372 -nowarn:557 -nowarn:556 -nowarn:559 -encoding Cp1252 -g -d C:\BIPublisherIDE\BIPublisherIDE\classes -make C:\BIPublisherIDE\BIPublisherIDE\classes\BIPublisherIDE.cdi -classpath "\j2sdk1.4.2_13\jre\lib\rt.jar;\j2sdk1.4.2_13\jre\lib\i18n.jar;\j2sdk1.4.2_13\jre\lib\sunrsasign.jar;\j2sdk1.4.2_13\jre\lib\jsse.jar;\j2sdk1.4.2_13\jre\lib\jce.jar;\j2sdk1.4.2_13\jre\lib\charsets.jar;\j2sdk1.4.2_13\jre\classes;C:\BIPublisherIDE\BIPublisherIDE\classes;C:\BIPublisherIDE\BIPublisherIDE\lib\collections.jar;C:\BIPublisherIDE\BIPublisherIDE\lib\i18nAPI_v3.jar;C:\BIPublisherIDE\BIPublisherIDE\lib\j5472959_xdo.zip;C:\BIPublisherIDE\BIPublisherIDE\lib\jdom.jar;C:\BIPublisherIDE\BIPublisherIDE\lib\versioninfo.jar;C:\BIPublisherIDE\BIPublisherIDE\lib\xdochartstyles.jar;C:\BIPublisherIDE\BIPublisherIDE\lib\xdoparser.jar;C:\BIPublisherIDE\BIPublisherIDE\lib\xmlparserv2-904.jar;D:\NGC IT\Software\Oracle\Java Developer\jdbc\lib\ojdbc14dms.jar;D:\NGC IT\Software\Oracle\Java Developer\jdbc\lib\orai18n.jar;D:\NGC IT\Software\Oracle\Java Developer\jdbc\lib\ocrs12.jar;D:\NGC IT\Software\Oracle\Java Developer\diagnostics\lib\ojdl.jar;D:\NGC IT\Software\Oracle\Java Developer\lib\dms.jar;D:\NGC IT\Software\Oracle\Java Developer\j2ee\home\lib\activation.jar;D:\NGC IT\Software\Oracle\Java Developer\j2ee\home\lib\ejb.jar;D:\NGC IT\Software\Oracle\Java Developer\j2ee\home\lib\jms.jar;D:\NGC IT\Software\Oracle\Java Developer\j2ee\home\lib\jta.jar;D:\NGC IT\Software\Oracle\Java Developer\j2ee\home\lib\mail.jar;D:\NGC IT\Software\Oracle\Java Developer\j2ee\home\lib\servlet.jar" -sourcepath C:\BIPublisherIDE\BIPublisherIDE\src;\j2sdk1.4.2_13\src.zip C:\BIPublisherIDE\BIPublisherIDE\src\bipublisher\api\XMLPublisherApi.java C:\BIPublisherIDE\BIPublisherIDE\src\bipublisher\api\XMLPublisherDataTemplate.java C:\BIPublisherIDE\BIPublisherIDE\src\bipublisher\api\XMLPublisherDelivery.java C:\BIPublisherIDE\BIPublisherIDE\src\bipublisher\config\XMLPublisherConfig.java C:\BIPublisherIDE\BIPublisherIDE\src\bipublisher\utility\XMLPublisherUtility.java
Error: cannot read: java.lang.Object
[11:07:06] Successful compilation: 0 errors, 0 warnings.
Can you suggest why I get "Error: cannot read: java.lang.Object"
Many thanks
Simon

Similar Messages

  • Problem displaying PDF stored in BLOB column

    Hello everyone.
    I've been trying to follow this tutorial http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::p11_question_id:232814159006 on displaying PDFs stored in BLOB columns. This is being performed on Apex 4.2, with my DB running 11g. I've got my procedure, which I'll post below:
    create or replace procedure "PDF" (p_id IN gvo_documents.doc_id%type)
    is
        l_lob    blob;
        l_amt    number default 30;
        l_off   number default 1;
        l_raw   raw(4096);
    begin
        select contents into l_lob
            from gvo_documents
             where doc_id = p_id;
    -- make sure to change this for your type!
        owa_util.mime_header( 'application/pdf' );
        begin
            loop
              dbms_lob.read( l_lob, l_amt, l_off, l_raw );
              htp.prn( utl_raw.cast_to_varchar2( l_raw ) );
              l_off := l_off+l_amt;
              l_amt := 4096;           
        end loop;
            exception
               when no_data_found then
                  NULL;
            end;
    end;
    I am trying to run this through a PL/SQL dynamic region and while I don't receive any error's, the content displayed is a huge mess of garbled text and odd characters. I've tried to run this procedure on numerous other document types, including word files and jpeg images, all with the necessary changes in my procedure, and regardless of what I use, I still get a large mess of strange characters. Does anyone have any information or ideas about why this is happening?

    If I understand correctly, your requirements needs to be broken down into two problems:
    1) click link that pops up a window displaying a new APEX page
    2) an APEX page the displays the document, not downloads it.
    I haven't done #1 (yet).
    However, you may be able to generate a URL that points to the new page as part of the SELECT statement for the Report.
    This has a related question, but no answer yet:
    open pdf in popup browser window
    The key is target="_blank" for the anchor tag.
    To generate the URL, you should use the APEX_UTIL.prepare_URL() function.
    If that doesn't work, a Dynamic Action that does some magical JavaScript stuff may be needed.
    For #2, I lost the URL that showed how to display a PDF as part of a "form" page.
    From what I remember:
    Start with a blank page with one blank HTML region (all the Items go in the HTML region)
    Add an Item for the PK/Doc_ID
    part I forgot Create a Data Manipulation Process
    - Automated Row Fetch
    - On Load - After Header
    - (stuff for your table/view)
    part I forgot Create an (I believe) "File Browser" item type. For Settings:
    - Storage Type "BLOB column specified in Item Source" (and place the column name of the BLOB there)
    - MIME Type Column: (column name) -- since you have multiple types, this is a MUST HAVE
    - Filename Column: (column name) -- I highly recommend you have this.
    - Content Disposition == INLINE <-- this is the kicker
    Also, you will need a Browser Plugin for each of the MIME Types (otherwise, the browser may try to 'download' the file)
    Browsers can handle Image types internally. Adobe's plugin can handle PDFs. I don't know about Word/Excel.
    Again, I don't remember the exact details, but that should cover most of it.
    MK

  • Report with a Download link for a Pdf stored in Blob in database FND tables

    We attach a pdf file in the Receivables invoices in Oracle EBS. We use APEX to report from EBS tables. We have a requirement to have a APEX report to display the pdf attached to the invoices with a capability to download the pdf. These pdf are stored in a blob column in fnd_lobs table.
    Any pointers on how to approach is highly appreciated.
    Thanks
    Jo

    check this How to Upload and Download Files in an Application
    let me know if you have any doubts

  • How to open PDF stored as blob

    Hi,
    How can i open PDF that is stored in the database as BLOB from Forms 10g. Any method to directly open the PDF instead of generating physical PDF file in AS and open in client by webutil.showdocument.
    Thanks in advance

    Hi,
    The second option is not working here.
    I have another solution
    WEB.SHOW_DOCUMENT('http://abc.com/efg.pdf'); this open the pdf file in the browser without displaying
    a blinking command prompt (as like in the option 1).
    But in all the cases we are opening the physical file, I am looking to open directly from the BLOB column.
    If I should first generate the physical file from the BLOB column, then plz help me to get the code
    Thanks to both of you.

  • Display a PDF from a BLOB Column on a page.

    Hi Folks.
    I have PDFs stored in BLOB columns in the database.
    Is there a way to display these to the APEX user on the page at runtime?
    Any pointers appreciated.
    Meantime I'm going to experiment.
    Cheers
    Dogfighter.

    I suppose this depends really on what you want.
    You have at least two choices.
    1) Allow the user to download the pdf and then they get the option to save it or open it in a new window
    2) You can also get them to open it. You can open it in a new window by adding "_blank"
    in the target.
    The sample application has procedures download_my_file and custom_image_display which will show you how to achieve this.
    The only other way you could possibly do it is open it as a plugin. Thats way beyond my knowledge, but I'm sure someone else will chip in.

  • Is it possible to pass some type of parameter/unique id FROM PDF?

    hi there,
    I will try to explain this as best as I can but please bear with me.
    I have Adobe Acrobat X Pro.
    We have drawings linked to each other in pdf.
    When you open a drawing (say, a layout of a house), my boss wants to be able to click on say, a door, and have all the information on that door pop up (size, manufacturer, when it was shipped, etc). The information log is stored in Excel. I know how to hyperlink to open an excel file FROM pdf, but cannot figure out how to open a specific sheet in Excel. So here is my question:
    1. How do I link to a specific sheet in Excel so it opens when I click on a link in the pdf file?
    Having said that, we are going to have around 1500 items and I don't want to have to create 1500 sheets (if that's even possible) to open the details for each one. So here is question #2:
    2.  Is it possible to pass some type of parameter to excel (or even Access) to know what item was clicked on the pdf file so I can write a macro/code in Excel to just fill in the details for that item? (Hence just needing one sheet instead of 1500?).
    Suggestions/path forwards are welcome.
    I hope this was clear and I thank you in advance.
    Thanks,
    Jessica

    There really isn't a way to do that. It would be possible to export an Excel sheet to a tab-delimited (or CSV, XML) file which could optionally be attached to the PDF. JavaScript inside the PDF could read the data file and extract the information for an item so it could be displayed somehow.

  • Is it possible to pass TABLE as the output parameter in stored procedure

    Hey Experts,
      Is it possible to pass TABLE as the output parameter in stored procedure.
    eg
    create procedure spGetData
    @tableName as TABLE(intValue INT NOT NUL)
    as 

    You can use OPENQUERY or OPENROWSET, as mentioned above, to make stored procedure results table like. There are
    some limitations with these methods:
    http://technet.microsoft.com/en-us/library/ms188427.aspx
    In OPENQUERY this-sql-server-instance can be used instead of a linked server name. It requires setting data accces server option:
    exec sp_serveroption @server = 'PRODSVR\SQL2012'
    ,@optname = 'DATA ACCESS'
    ,@optvalue = 'TRUE'
    LINK: http://www.sqlusa.com/bestpractices/select-into/
    Kalman Toth Database & OLAP Architect
    SELECT Video Tutorials 4 Hours
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Is possible to pass array/list as parameter in TopLink StoredProcedureCall?

    Hi, We need to pass an array/List/Vector of values (each value is a 10 character string) into TopLink's StoredProcedureCall. The maximum number of elements on the list is 3,000 (3,000 * 10 = 30,000 characters).
    This exposed two questions:
    1. Is it possible to pass a Vector as a parameter in TopLink's StoredProcedureCall, such as
    StoredProcedureCall call = new StoredProcedureCall();
    call.setProcedureName("STORED_PROCEDURE_NAME");
    call.addNamedArgument("PERSON_CODE");
    Vector strVect = new Vector(3000);
    strVect.add(“ab-gthhjko”);
    strVect.add(“cd-gthhjko”);
    strVect.add(“ef-gthhjko”);
    Vector parameters = new Vector();
    parameters.addElement(strVect);
    session.executeQuery(query,parameters);
    2. If the answer on previous question is yes:
    - How this parameter has to be defined in Oracle’s Stored Procedure?
    - What is the maximum number of elements/bytes that can be passed into the vector?
    The best way that we have found so far was to use single string as a parameter. The individual values would be delimited by comma, such as "ab-gthhjko,cd-gthhjko,ef-gthhjko..."
    However, in this case concern is the size that can be 3,000 * 11 = 33, 000 characters. The maximum size of VARCHAR2 is 4000, so we would need to break calls in chunks (max 9 chunks).
    Is there any other/more optimal way to do this?
    Thanks for your help!
    Zoran

    Hello,
    No, you cannot currently pass a vector of objects as a parameter to a stored procedure. JDBC will not take a vector as an argument unless you want it to serialize it (ie a blob) .
    The Oracle database though does have support for struct types and varray types. So you could define a stored procedure to take a VARRAY of strings/varchar, and use that stored procedure through TopLink. For instance:
    StoredProcedureCall call = new StoredProcedureCall();
    call.setProcedureName("STORED_PROCEDURE_NAME");
    call.addNamedArgument("PERSON_CODE");
    oracle.sql.ArrayDescriptor descriptor = new oracle.sql.ArrayDescriptor("ARRAYTYPE_NAME", dbconnection);
    oracle.sql.ARRAY dbarray = new oracle.sql.ARRAY(descriptor, dbconnection, dataArray);
    Vector parameters = new Vector();
    parameters.addElement(dbarray);
    session.executeQuery(query,parameters);This will work for any values as long as you are not going to pass in null as a value as the driver can determine the type from the object.
    dataArray is an Object array consisting of your String objects.
    For output or inoutput parameters you need to set the type and typename as well:
      sqlcall.addUnamedInOutputArgument("PERSON_CODE", "PERSON_CODE", Types.ARRAY, "ARRAYTYPE_NAME"); which will take a VARRAY and return a VARRAY type object.
    The next major release of TopLink will support taking in a vector of strings and performing the conversion to a VARRAY for you, as well as returning a vector instead of a VARRAY for out arguments.
    Check out thread
    Using VARRAYs as parameters to a Stored Procedure
    showing an example on how to get the conection to create the varray, as well as
    http://www.oracle.com/technology/sample_code/tech/java/codesnippet/jdbc/varray/index.html on using Varrays in Oracle, though I'm sure the database docs might have more information.
    Best Regards,
    Chris

  • Is it possible to pass a variable from a shell script back to an Automator action?

    Is it possible to pass a variable from a shell script back to an Automator action?
    For instance, if I assign a value of foo to $var1 in my shell script how would I retrieve/pass that value in the next Automator action. I see that there is a variable called "Shell Script" but I can't any information on how to use it. 

    red_menace,
    Thanks but I still don't understand how to pass a single value that was set in the UNIX scipt back to Automator has a variable. Take the example below, I write 4 varables to STDOUT and all 4 are stored in a variable named "storage".  How do I assign 1 of these values to the Automator "storage" variable? For instance if I wanted to assign the value of $var2 to "storage" , how would I do that?

  • Is it possible to pass the Interactive Form on dynamic?

    Hi,
    Is it possible to pass the Interactive Form on dynamic?
    In webdynpro I am handling the header part that will be common for the entire input screen, based on the application name I want to call the different interactive forms. I have seen in template source there is no option to provide binding with context.
    Regards,
    Mahesh.Gattu

    Hi Mahesh,
    You can create different views with different PDF forms in their template source and dynamically navigate to the required view/ make the required view visible.
    say on your main view, create the header part with the necesaary UI elements and insert multiple view containers below it. Embed a pdf view in the respectve view containers.
    Create a context node UI_RENDER .. cardinality 1..1
    Create attributes pdf1_visible type wdui_visibility
    pdf2_visible and so on. Bind these to the visible property of the respective view container.
    based on the application name, set them to either visible or invisible.
    Hope this helps.
    Regards,
    Reema.

  • Is it possible to pass a multi line PowerShell code block to the Invoke-Command ScriptBlock option?

    Hello,
    In my code I am trying to start a windows service on an Azure VM via Azure Automation.  My code fragment is:
    $vm = Get-AzureVM -Name $VMName -ServiceName $VMServiceName
    $uri = Get-AzureWinRMUri -ServiceName $vm.ServiceName -Name $vm.Name
    # Run a command on the Azure VM
    $PSCommandResult = InlineScript {
    $options = New-PSSessionOption -SkipCACheck
    $output = Invoke-Command -ConnectionUri $Using:uri `
    -Credential $Using:Credential `
    -SessionOption $options `
    -ScriptBlock { stop-service -DisplayName <ServiceName> -Force }
    My issue is: Is it possible to pass in a multiple line PS block as the ScriptBlock option?
    After looking around online, there appeared to be two options:
    $psblock = {
    line1
    line2
    line3
    Or
    $PSCommand = @"
    Line1
    Line2
    Line3
    But I have not been able to get either of these to work. (I was trying to end up with something like below)
    $output = Invoke-Command -ConnectionUri $Using:uri `
    -Credential $Using:Credential `
    -SessionOption $options `
    -ScriptBlock { $psCommand }
    Can someone offer a suggestion? Putting a few lines of PS code directly into the ScriptBlock parameter does work but it looks ugly!
    Thanks!

    Thanks for getting back to me!
    I have tried as you suggested but when I attempt to publish the runbook I get this error:
    Runbook definition is invalid. Cannot store the results of this type of expression into a variable. Only the results of commands, pipelines, constant expressions, foreach statements, parallel and sequence statements can be stored in variables.
     However if I just cut and paste the same code inside the ScriptBlock { CODE HERE } it works.
    Perhaps I am breaking the rule as listed above in bold? Would variable declarations in the code block not be allowed?

  • How do I open a pdf stored in a Microsoft Access database using Visual Basic studios 2012

    Currently I am unable to find a valid method of being able to open a pdf stored in a Microsoft Access database using Visual Basic studios 2012. I've tried displaying the entire database on a form, but when I do this all the other columns show up with
    the correct data besides the one containing the pdf's, it just displays <binary data> in each row down the column. I also tried another method with which you use the database as a dataset and can drag and drop the rows and columns into the form, which
    again works for all the other columns besides the one containing the pdf's but this time I'm unable to interact with the column  at all. 
    Not too sure if this is in the correct place, but any answers or help would be appreciated. Cheers.

    Alex,
    This forum is dedicated to Project and Project Server. You might get better response, if you post to a Visual Basic forum. Here are couple I could find. 
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vbgeneral%2Cvblanguage&filter=alltypes&sort=lastpostdesc
    Cheers,
    Prasanna Adavi, Project MVP
    Blog:
      Podcast:
       Twitter:   
    LinkedIn:
      

  • Is it possible to pass a string from an applet to the web site?

    Hi, everybody!
    Is it possible to pass a String from an applet to a web site (as a field value in a form, an ASP variable, or anything else). Basically, I have a pretty large String that is being edited by an applet. When a user clicks on the submit button, a different page will show up which has to display the modified string. The String is pretty large so it doesn't fit into the URL variable.
    Please, help!
    Thank you so much!

    Why do you want to do this in Java?
    Javascript is the correct language for these type of situations.
    for instance:
    in the head of your html document:
    <script language=javascript type="text/javascript">
    createWindow(form){
    if(form.text.value!=""){
    newDoc = new document
    newDoc.write(form.text.value)
    newWin = window.open(document,'newWin','width=200;height=150')
    </script>
    in the body:
    <form onSubmit="createWindow(this)">
    <p>
    Enter a String:<input type=text size=30 name="text">
    </p><p>
    <input type=submit value="submit"> 
    <input type=reset value="reset">
    </p>
    </form>

  • PDF stored in database and to view the PDF when clicking on a link

    Is it possible to save a PDF document in the database as a blob column and to retrieve the PDF when clicking on the link
    Example
    Above method is possible for images
    See: http://www.oracle.com/technology/obe/apex/apex31nf/apex31blob.htm.
    But can I reach the same for PDF documents?
    Thanks in advance for your response.
    Kind regards,
    Iloon

    Hello Andy,
    This Upload and Download Files is very useful feature in APEX.
    However, is there a way of displaying PDF files first in the report by clicking the corresponding link
    in the table?
    I mean, is it possible to view PDF files first by clicking the link before deciding to download them?
    As we see, this approach is used by most websites and after opening and viewing a PDF file, we can save them.
    Thanks.
    Shurick.
    Edited by: Shurick on Sep 28, 2009 12:51 PM

  • Is it possible to convert PDF file into HTML

    Dear friends
    Is it possible to convert PDF file into HTML. I have few hundread PDF files i like to convert this files into HTML. I hope it can be done through Java but i don't know how to start this coding. anybody can give me a brief idea to go ahead.

    Why do you want to do this yourself? I quick search on Google showed several utilities to do this, some freeware, some commercial.

Maybe you are looking for

  • Oracle OLEDB Provider

    Good Afternoon: I am having trouble running sql thru VB with the Oracle OLEDB provider. The sql runs fine with the MSDAORA provider. My error is 'missing right parenthesis'. Here is the sql: SELECT b.DIVISION_ID KEY, b.PLAN_TYPE PLAN, 900000 FS_CODE,

  • Configurable Material Problem

    Hi to All, I've the following problem: during the material creation (via /SAPMP/BAPI_MATERIAL_SAVEDATA) I cannot ale to add Configurable Material (MRP3 view in MM02 Transaction). I Use the FM BAPI_OBJCL_CREATE to create new classifications. How can I

  • Size of font on hardware (too small)

    Hi,   A general comment for the Linksys/Cisco design team, not sure where else to post this. I have several Linksys/Cisco products including the Linksys WTR54G travel router and the Linksys SPA2102 ATA. I find the printing on the hardware too small t

  • An intro programming freshman needing help..

    I'm a computer science freshman student and just starting out in my OOP class in JAVA. My class is using the Deitel book "How to Program in JAVA" 3rd ed. Although we are just beginning the course and have jst started working on arrays, I really wante

  • Career scope in BizTalk Development

    I Have been working in .Net MVC development from 2 years. But I want to migrate my career to BizTalk Development for potential career, does my opinion is good, Please give me some suggestions, and let me know to continue with my career or yes, we can