Trying to display a pdf exported report file in browser

i am getting null pointer exceprtion when try to close the report browser.
the same code is working perfectly in adobe reader 8. i am getting this problem adobe reader 9.
i am exporting the report file as a pdf and saving locally. report is displayed in the browser from local directory.
till its working fine. when close the report file.. i am getting the following error:
java.lang.NullPointerException
        at org.eclipse.swt.ole.win32.OleClientSite.onPaint(OleClientSite.java:921)
        at org.eclipse.swt.ole.win32.OleClientSite.access$2(OleClientSite.java:906)
        at org.eclipse.swt.ole.win32.OleClientSite$1.handleEvent(OleClientSite.java:131)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
        at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1424)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3842)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4541)
        at org.eclipse.swt.internal.ole.win32.COM.CoFreeUnusedLibraries(Native Method)
        at org.eclipse.swt.ole.win32.OleClientSite.releaseObjectInterfaces(OleClientSite.java:1084)
        at org.eclipse.swt.ole.win32.OleControlSite.releaseObjectInterfaces(OleControlSite.java:683)
        at org.eclipse.swt.ole.win32.OleClientSite.onDispose(OleClientSite.java:852)
        at org.eclipse.swt.ole.win32.OleClientSite.access$1(OleClientSite.java:847)
        at org.eclipse.swt.ole.win32.OleClientSite$1.handleEvent(OleClientSite.java:128)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1008)
        at org.eclipse.swt.widgets.Widget.release(Widget.java:804)
        at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:755)
        at org.eclipse.swt.widgets.Widget.release(Widget.java:807)
        at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:755)
        at org.eclipse.swt.widgets.Widget.release(Widget.java:807)
        at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:755)
        at org.eclipse.swt.widgets.Canvas.releaseChildren(Canvas.java:174)
        at org.eclipse.swt.widgets.Decorations.releaseChildren(Decorations.java:771)
        at org.eclipse.swt.widgets.Shell.releaseChildren(Shell.java:1211)
        at org.eclipse.swt.widgets.Widget.release(Widget.java:807)
        at org.eclipse.swt.widgets.Widget.dispose(Widget.java:441)
        at org.eclipse.swt.widgets.Decorations.dispose(Decorations.java:446)
        at org.eclipse.swt.widgets.Shell.dispose(Shell.java:674)
        at org.eclipse.swt.widgets.Decorations.closeWidget(Decorations.java:308)
        at org.eclipse.swt.widgets.Decorations.WM_CLOSE(Decorations.java:1643)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3789)
        at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:337)
        at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1576)
        at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1937)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4528)
        at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2366)
        at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:477)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3877)
        at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:337)
        at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1576)
        at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1937)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4528)
        at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2366)
        at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:477)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3877)
        at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:337)
        at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1576)
        at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1937)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4528)
        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2371)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3420)
        at com.siemens.med.cad.hqm.view.mainUI.HQMMainForm.buildMainShell(HQMMainForm.java:246)
        at com.siemens.med.cad.hqm.event.UserLoginEventHandler.loginDisplay(UserLoginEventHandler.java:240)
        at com.siemens.med.cad.hqm.event.UserLoginEventHandler.widgetSelected(UserLoginEventHandler.java:97)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
this is my code:
private void displayReport(String reportTitle) {
        // Shell to display the report
            Display display = Display.getDefault() ;
         Shell shell = new Shell(SWT.RESIZE //Display of the active Shell being used
                | SWT.CLOSE | SWT.MIN | SWT.MAX | SWT.APPLICATION_MODAL);
        shell.setText(reportTitle);
        shell.setLayout(new FillLayout());
        shell.setMaximized(false);
        shell.setSize(800, 600);
        // Composite
        Composite comp = new Composite(shell, SWT.NONE);
        comp.setLayout(new FillLayout());
        // Browser
        final Browser browser = new Browser(comp, SWT.FLAT);
        // Setting the file to browser
        try {
            File file = new File(exportFile);
            URL url = file.toURL();
            browser.setUrl("file:" + url.getPath());
        } catch (MalformedURLException malURLEx) {
            // malURLEx.printStackTrace();
            throw new ProgrammingExceptionAdapter(malURLEx);
        // Add a dispose listener to the shell
        // and delete the temp file at dispose.
        shell.addDisposeListener(new DisposeListener() {
            public void widgetDisposed(DisposeEvent arg0) {
                File file = new File(exportFile);
                if (file != null && file.exists()) {
                    file.delete();
                browser.dispose();            
        // Opening the file
        shell.open();
        shell.setFocus();

I see no Crystal here.
Sincerely,
Ted Ueda

Similar Messages

  • I am trying to make a pdf of a file and I need to get the file size to be no bigger than 10MB. What is the best way to do this

    I am trying to make a pdf of a file and I need to get the file size to be no bigger than 10MB. Even when I save it, the image quality at minimum the file size is 10.9 MB. What is the best way to do this

    @Barbara – What purpose is that PDF for? Print? Web?
    If web purpose, you could convert CMYK images to sRGB. That would reduce the file size as well.
    A final resort to bring down file size is:
    1. Print to PostScript
    2. Distill to PDF
    That would bring file size down even more. About 20%, depending on the images and other contents you are using, compared with the Acrobat Pro method. If you like you could send me a personal message, so we could exchange mail addresses. I could test for you. Just provide the highres PDF without any downsampling and transparency intact. Best provide a PDF/X-4.
    I will place the PDF in InDesign, print to PostScript, distill to PDF.
    Uwe

  • Trying to display a pdf inline, in a new window.

    Hello
    I have a servlet with the following html button.
    <FORM NAME=download ACTION=/servlet.ShowReportServlet METHOD=get>
    <INPUT TYPE='submit' VALUE='Display Report A' NAME='Report'>
    When this button is pressed, a pdf file is displayed via the following code
    // Store the uploaded file size
         int filesize = bis.available();
         // Set content type to application/pdf for Adobe Acrobat Reader
         response.setContentType("application/pdf");
         // Content-Disposition is a field to specify presentation of
         // entity or file name (incase Acrobat Reader plug-in not installed)
         response.setHeader(
              "Content-Disposition",
              "inline; filename=\"" + fileToUpload + "\"");
         // Do not cache the pdf file
         response.setHeader("Cache-Control", "no-cache");
         // Set the content length
         response.setContentLength(filesize);
         // Upload the file to the client
         ServletOutputStream sos = response.getOutputStream();
         int data;
         while ((data = bis.read()) != -1) {
              sos.write(data);
    My problem is that I can't work out how to display the pdf in a new browser window.
    Any help would be greatly appreciated.
    Thankyou.

    Thanks for pointing me in the right direction DrClap.
    We ended up with the following html (in an HttpServletResponse):
    <FORM NAME=download ACTION=/servlet.ShowReportServlet METHOD=get TARGET="ReportWindow">
    <INPUT TYPE='submit' VALUE='Display Report A' NAME='Report' OnClick="window.open('','ReportWindow','height=530,width=550,menubar=0,resizable=1,scrollbars=1, status=0,titlebar=0,toolbar=0,left=300,top=100')">

  • Aperture crashes upon trying to play video. Exporting .AVI file wont play.

    Hi,
    I uploaded my holiday pictures and 4 videos into Aperture and when I try to play the videos I get pretty bad beachball with no playback of the video. When I export the file I am presented with a SAM_xxx.AVI file. (SAM from Samsung camera). I have tried to play the file with Quicktime, VLC & MPlayer X. I ran the 4 files through DivFix++ and I am given the error, "Input file is not .avi"
    Any thoughts as to whats going on? Aperture shows a thumbnail for the videos and VLC shows correct length but no playback.
    Thanks

    I have both an iPad and iPhone connected to my Mac. I disconnected both, then restarted my Mac and Safari. No improvement. Used Lion Recovery System to reload Lion. Interesting thing, Safari 5.1.7 was installed rather than Safari 6. This made me happy, as Safari 6 has been nothing but trouble for me. When I opened Safari, it took me back to apple.com, even though my homepage is yahoo.com. I was immediately confronted with the infamous Steve Jobs video, that has crashed my computer every time it's popped up on my screen. This time, however, it didn't crash ... I just got the spinning beachball for about 30 seconds, then the Quicktime thermometer at the bottom started moving and I was sure it was going to work. After the thermomter passed about one-fourth of the way over, the screen blanked and the Quicktime thermometer started all over again. This behavior persisted until I got tired of it and went to my home page. However, I can open Quicktime and watch videos again, even the YouTube ones that were crashing every time. Now I just have to figure out how to never let a Software Update stick me with Safari 6 ever again. If it does, I'm simply through with it and will make Firefox my default browser. Thank you so much for getting me this far. I will keep monitoring these discussions to see if Apple ever gets Safari 6 to the point that I'll give it another trial.
    Eddie

  • Displaying the PDF ByteStream on to the browser?

    Hi,
    I want to display a pdf on the browser.
    I have with me the byte stream, using which I need to display the pdf
    directly on the browser.
    Currently, I am storing it in my local file system by creating a file
    output stream. But its taking a lot of time.
    I don't want to create any intermediate files.
    Is it possible to display the PDF directly on the browser?
    If yes, then can some one point how can this be achieved in SunSeeBeyond......
    Regards,
    Renga

    The questions really are
    1."how do I get the web browser to GET a PDF data stream from SeeBeyond"
    2."how do I return a PDF data stream from SeeBeyond so that the browser
    interprets it as PDF".
    Question 2.
    PDF data can be supplied to the browser the same as any other content.
    Content-type header will be application/pdf - see RFC3778
    If your "web application" is completely outside Java CAPS but you need
    Java CAPS to provide the PDF data then the simplest thing to do is to
    develop a JCD or a BP that uses the HTTP Server eWay, accepts the GET
    request, gets the data, sets the data in the HTTP Response, sets the
    content-type in the HTTP Response and sends the lot back to the browser.
    If you are using eVision then you need to consider where within your
    eVision page you would like to display the PDF. A couple of choices are
    a) in a popup window, b) in an inline frame, c) in an independent
    browser window. In all of these you can specify the URL of the PDF and
    the browser will send the GET request to whatever provides the PDF data,
    Java CAPS or otherwise. All this has plenty to do with HTTP, HTML and
    client-side scripting and rather little to do with Java CAPS. If you
    don't understand these underlying technologies you will have
    difficulties working out by yourself what can/needs be done.
    Question 1.
    Again, if your "web application" is developed outside Java CAPS you
    cause the link, button, or some such, to get the web browser to issue a
    HTTP GET request with the appropriate URL that points to the Java CAPS
    infrastructure component that will return the PDF data with the
    appropriate HTTP Headers. If your application is eVision-based then
    again you need to consider where the PDF content is to be displayed and
    get the eVision page to issue the GET request for you, have the pageflow
    construct the eVision page so that it embeds the PDF, etc., etc..
    All of this is well beyond a simple answer to a simple question. This
    takes time to analyse and respond so don't expect a cookbook answer from
    anyone.

  • CRXIR2 image from blob field and some fonts not displaying in PDF export

    I used CRXIR2 developer edition to create a report linked to a SQL 2000 database table.  There is a blob field containing a JPG image that is different for each record in the table.  I am using VB.NET code with ASP.NET 2.0 to programmatically change the temp file to a local folder for easy cleanup, open this crystal report with the 11.5.3700.0 version of the assemblies, set the datasource to a DataTable extracted from the DB, and then export to a PDF file.
    The code for creating the PDF is:
            Dim TempRoot As String = MapPath(".") & "\temp\"
            Dim oldTmp As String = System.Environment.GetEnvironmentVariable("TMP")
            System.Environment.SetEnvironmentVariable("TMP", TempRoot)
            Dim objReport As New ReportDocument()
            objReport.Load(MapPath(".") & "\CReports\" & ReportName)
            For lnX As Integer = 0 To objReport.Database.Tables.Count - 1
                    objReport.Database.Tables(lnX).SetDataSource(resultTable)
            Next
            Dim objDestinationOptions As New DiskFileDestinationOptions()
            Dim objExportOptions As New ExportOptions()
            Dim objFormatTypeOptions As New CrystalDecisions.Shared.PdfRtfWordFormatOptions()
            Dim pdfName As String = "test.pdf"
            objDestinationOptions.DiskFileName = MapPath(".") & "\temp\" & pdfName
            objExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat
            objExportOptions.ExportDestinationType = ExportDestinationType.DiskFile
            objExportOptions.ExportDestinationOptions = objDestinationOptions
            objReport.Export(objExportOptions)
            objReport.Dispose()
            System.Environment.SetEnvironmentVariable("TMP", oldTmp)
    When I run the site locally in VS2008, everything works fine and a PDF contains the graph and all the fonts are correct.
    However, when I run the exact same site from a web server running IIS6, the PDF generated does not have the image, and some of the fonts are substituted (all of the necessary fonts are installed on the IIS server).
    Please help!

    Hi Don,
    I am able to see the image and export from the CR Designer on my machine running XP.  However, I installed the designer on our IIS server running Server 2003, and the image does not show in the designer preview on that machine.
    I found another forum thread that you are involved in (1902383) that seems to be dealing with this exact issue, and it looks like there may not be a resolution.
    I am going to try a different route - instead of pulling in the SQL Image field directly, I am going to write it out to a temporary file and pull it in by altering the graphic location of the picture object in the report.
    I'll let you know how that works.
    Pete

  • Trying to combine multiple PDF into one file

    I have several of my daughters online assignments that I scanned in then converted to a PDF. But, now I need to make them into one document but cant find how to do that.  I am using Adobe Reader X.

    The PDF Pack online service can also combine PDF files.

  • PDF Export - converting files

    I don't want to convert an entire document, just one or two pages.  Can this be done?

    Could you try disabling the 'Recognize text' function and convert the file again?
    Let us know how it goes!
    -David

  • Urgent: Issue while displaying the PDF Reports Using XDO Common region

    Hi all,
    In our product code we are trying to display the PDF Reports, using the xdo common region.
    Previously we were writing the pdf reports direclty onto the response direclty.
    This displays the report onto the browser but if navigate throw browser back button, it doesn't displays the report as the response stream is empty while navigating through back button.
    So to solve this issue, i tried to write the report using the OAHTMLWebBean and xdo common region. Here is the code:
    ByteArrayOutputStream xdoOutput = new ByteArrayOutputStream();
    XDOUtility.retrieveReport(xdoOutput,
    parameters,
    prop,
    appMod
    BlobDomain bxdoOutput = new BlobDomain();
    bxdoOutput.setBytes(xdoOutput.toByteArray());
    String redirectURL = DocumentHelper.getOutputURL(pageContext,
    bxdoOutput,
    "Report",
    "PDF");
    OAHTMLWebBean outRegion = (OAHTMLWebBean)createWebBean (pageContext, OAWebBeanConstants.HTML_WEB_BEAN, null, "IFRAME");
    outRegion.setHTMLAttributeValue("src", redirectURL);
    outRegion.setHTMLAttributeValue("width", "100%");
    outRegion.setHTMLAttributeValue("height", "100%");
    outRegion.setHTMLAttributeValue("title","Report");
    outRegion.setHTMLAttributeValue("name","Report");
    pageContext.getPageLayoutBean().addIndexedChild(outRegion);
    This successfully displays the report in the XDO Common region. But now the issue is that there are hyperlinks in the Report displayed where from where the user can navigate to other detail pages.
    When we click on these links, a new session starts in the xdo common region.
    Is it possible that when the user click the links in the report displayed, instead of starting a new session in the xdo region, the detail pages is displayed with in the older session.
    Regards
    Sandeep

    Hi all,
    In our product code we are trying to display the PDF Reports, using the xdo common region.
    Previously we were writing the pdf reports direclty onto the response direclty.
    This displays the report onto the browser but if navigate throw browser back button, it doesn't displays the report as the response stream is empty while navigating through back button.
    So to solve this issue, i tried to write the report using the OAHTMLWebBean and xdo common region. Here is the code:
    ByteArrayOutputStream xdoOutput = new ByteArrayOutputStream();
    XDOUtility.retrieveReport(xdoOutput,
    parameters,
    prop,
    appMod
    BlobDomain bxdoOutput = new BlobDomain();
    bxdoOutput.setBytes(xdoOutput.toByteArray());
    String redirectURL = DocumentHelper.getOutputURL(pageContext,
    bxdoOutput,
    "Report",
    "PDF");
    OAHTMLWebBean outRegion = (OAHTMLWebBean)createWebBean (pageContext, OAWebBeanConstants.HTML_WEB_BEAN, null, "IFRAME");
    outRegion.setHTMLAttributeValue("src", redirectURL);
    outRegion.setHTMLAttributeValue("width", "100%");
    outRegion.setHTMLAttributeValue("height", "100%");
    outRegion.setHTMLAttributeValue("title","Report");
    outRegion.setHTMLAttributeValue("name","Report");
    pageContext.getPageLayoutBean().addIndexedChild(outRegion);
    This successfully displays the report in the XDO Common region. But now the issue is that there are hyperlinks in the Report displayed where from where the user can navigate to other detail pages.
    When we click on these links, a new session starts in the xdo common region.
    Is it possible that when the user click the links in the report displayed, instead of starting a new session in the xdo region, the detail pages is displayed with in the older session.
    Regards
    Sandeep

  • When I try to display .pdf file in browser (with proprietry extension .dnax) I get the error message "A plugin is needed to display this content".

    I am trying to display a .pdf file within Firefox on a Vista PC. I have changed the extension from .pdf to .dnax to differentiate this .pdf file from others. I get an error message as above.
    The file is displayed using Firefox on another PC with a Linux OS without problem.
    Any advice out there?

    Firefox typically judges the nature of a document or download based on the content-type header send by the web server. Usually a server has a catalog associating file extensions with content types. When you choose a new file extension, the server may send the generic "it's some kind of binary file" header ("application/octet-stream") which Firefox will not associate with a particular program.
    Now, when you open a file from the local system, there is no web server, so Firefox may look to the file extension to ascertain the content type. Obviously that is not working in your case. What happens when you want to open the file from My Computer or Windows Explorer? Does Windows have an application assigned to it? If you can associate it with Adobe Reader in Windows, Firefox may be able to pick that up from the Windows registry.

  • Export to PDF from Book file is freezing

    I'm trying to export books to PDF from the ID CS6 book panel.
    Shorter books are exporting with no problem, but some of the longer ones are hanging up around page 380 or so. The Generating PDF dialog appears and shows that the export process is stalling; when I open the Force Quit Applications window, it shows "InDesign (not responding)".
    I have a brand new computer, and have no other applicaitons running when trying to export, so the processing power should not be an issue.
    Is there something I can do to solve this problem?
    I need to use the Export Book to PDF function to get the TOC links to function properly in the entire exported PDF.
    Thanks in advance, this is a huge problem, and has never happened in the past.

    Thakns Peter, I had seen this thread, but it doesn't really address my issue. I've exported individual chapters from the book file, all with success, so I know there isn't a file corruption issue.  The problem seems to do more with memory allocation/usage. 
    I have tried: quitting and then immediately exporting the file, and even rebooting and then relanuching and exporting.  Both of these allow me to get a few pages farther along, but still not through the entire book.
    I remember back in the day there used to be a setting for how much RAM/dis c space was allocated to a certain applicatino (I knowm it was a long time ago).  I didn't know if there might be something like this hidden somewhere

  • PDF Export Files

    Can't locate where the pdf exported my files.

    Exported or printed to Adobe PDF?
    Adobe PDF Printer - From your Control Panel > Printers 
    Properties for the PDF Printer will show a PDF Printer Port, as shown

  • How to display the content from a file  stored in database

    when i am trying to display the content from a file which stored in database on oracle report 10g
    data are displaying as following. please help me to display the data in readable format
    <HTML LANG="en-US" DIR="LTR">
    <!-- Generated: 1/11/2006, postxslt.pl [1012] v1
    Source: amsug304286.xml
    File: amsug304286.htm
    Context: nil
    Tiers: ALWAYS
    Pretrans: YES
    Label: Release 12 -->
    <HEAD>
    <!-- $Header: amsug304286.htm 120.4 2006/11/01 20:57:29 appldev noship $ -->
    <!--BOLOC ug1_OMPO1010302_TTL--><TITLE>Product Overview (ORACLE MARKETING)</TITLE><!--EOLOC ug1_OMPO1010302_TTL-->
    <LINK REL="stylesheet" HREF="../fnd/iHelp.css">
    </HEAD>
    <BODY BGCOLOR="#F8F8F8">
    <A NAME="T304286"></A><A NAME="ProdOve"></A>
    <CENTER><H2><!--BOLOC ug1_OMPO1010302--><B>Product Overview</B><!--EOLOC ug1_OMPO1010302--></H2></CENTER>
    <p><!--BOLOC ug1_OMPO1010304-->Oracle Marketing drives profit, not just responses, by intelligently marketing to the total customer/prospect base. By leveraging a single repository of customer information, you can better target and personalize your campaigns, and refine them in real time with powerful analytical tools.<!--EOLOC ug1_OMPO1010304--></p>
    <p><!--BOLOC ug1_OMPO1006611-->With tools necessary to automate the planning, budgeting, execution, and tracking of your marketing initiatives, Oracle Marketing provides you with:<!--EOLOC ug1_OMPO1006611--></p>
    <ul>
    <li>
    <p><!--BOLOC ug1_OMPO1006612--><B>Customer Insight</B> - With sophisticated customer management and list generation, Oracle Marketing enables you to quickly generate target lists and segments using an intuitive user interface. The easy to use Natural Query Language Builder (NLQB) lets you query for customers or prospects using a natural language while hiding data complexity; fatigue management ensures that you do not over-contact the same customers with marketing messages; and predictive analytics helps you predict customer behavior that you can leverage to produce significant increases in marketing return on investments (ROI).<!--EOLOC ug1_OMPO1006612--></p>
    </li>
    <li>
    ls.<!--EOLOC ug1_OMPO1010304--></p>
    <p><!--BOLOC ug1_OMPO1006611-->With tools necessary to automate the planning, budgeting, execution, and tracking of your marketing initiatives, Oracle Marketing provides you with:<!--EOLOC ug1_OMPO1006611--></p>
    <ul>
    <li>
    <p><!--BOLOC ug1_OMPO1006612--><B>Customer Insight</B> - With sophisticated customer management and list generation, Oracle Marketing enables you to quickly generate target lists and segments using an intuitive user interface. The easy to use Natural Query Language Builder (NLQB) lets you query for customers or prospects using a natural language while hiding data complexity; fatigue management ensures that you do not over-contact the same customers with marketing messages; and predictive analytics helps you predict customer behavior that you can leverage to produce significant increases in marketing return on investments (ROI).<!--EOLOC ug1_OMPO1006612--></p>
    </li>
    <li>
    <p><!--BOLOC ug1_OMPO1006613--><B>Sales Alignment</B> - Oracle Marketing's leads management helps you compile and distribute viable leads so that sales professionals can follow up valuable opportunities and not just contact interactions. Additionally, support for distributing proposals and marketing material drive speedy and consistent setups and collaboration of best practices.<!--EOLOC ug1_OMPO1006613--></p>
    </li>
    <li>
    <p><!--BOLOC ug1_OMPO1006614--><B>Marketing Insight</B> - While Oracle Marketing Home page reports and Daily Business Intelligence (DBI) for Marketing and Sales provide aggregated management level information in almost real time, operational metrics help in tracking the effectiveness of individual marketing activities.<!--EOLOC ug1_OMPO1006614--></p>
    </li></ul>
    </BODY>
    </HTML>
    <!-- Q6z5Ntkiuhw&JhsLdhtX.cg&Zp4q0b3A9f.&RQwJ4twK3pA (signum appsdocopis 1162406236 2673 Wed Nov 1 10:37:16 2006) -->

    Hi,
    you can try to use the:
    <b>ConsumerTreeListPreview</b>
    layout for KM navigation ivew (or customize to your own).
    This layout shows a folder tree on the left, a document list on the right. When you click on a document from the list it shows the contents of the file on the bottom of the iview.
    Hope this helps,
    Romano

  • How To Store pdf or doc file in Oracle Database using Java Jdbc?

    can any one help me out How To Store pdf or doc file in Oracle Database using Java Jdbc in JSP/Serlet? i tried like anything. using blob also i tried. but i am able 2 store images in DB not files. please if u know or else if u have some code like this plz send that to me, and help me out plz. i need that urgent.

    Hi.. i am not getting error, But i am not getting the original contents from my file. i am getting all ASCII vales, instead of my original data. here i am including my code.
    for Adding PDF in DB i used image.jsp
    Database table structure (table name. pictures )
    Name Null? Type
    ID NOT NULL NUMBER(11)
    IMAGE BLOB
    <%@ page language="java" import="java.util.*,java.sql.*,java.io.*" pageEncoding="ISO-8859-1"%>
    <%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <%
    try{
         Class.forName("oracle.jdbc.driver.OracleDriver");
         Connection con=DriverManager.getConnection("jdbc:oracle:thin:@192.168.1.135:1521:orcl","scott","tiger");
         PreparedStatement ps,pstmt,psmnt;
         ps = con.prepareStatement("INSERT INTO pictures VALUES(?,?)");
    File file =
    new File("D:/info.pdf");
    FileInputStream fs = new FileInputStream(file);
    ps.setInt(1,4);
    ps.setBinaryStream(2,fs,fs.available());
    int i = ps.executeUpdate();
    if(i!=0){
    out.println("<h2>PDF inserted successfully");
    else{
    out.println("<h2>Problem in image insertion");
    catch(Exception e){
    out.println("<h2>Failed Due To "+e);
    %>
    O/P: PDF inserted successfully
    i tried to display that pdf using servlet. i am giving the code below.
    import java.io.IOException;
    import java.sql.*;
    import java.io.*;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class DispPDF extends HttpServlet {
         * The doGet method of the servlet. <br>
         * This method is called when a form has its tag value method equals to get.
         * @param request the request send by the client to the server
         * @param response the response send by the server to the client
         * @throws ServletException if an error occurred
         * @throws IOException if an error occurred
         public void service(HttpServletRequest request, HttpServletResponse response)
                   throws ServletException, IOException {
              //response.setContentType("text/html"); i commented. coz we cant use response two times.
              //PrintWriter out = response.getWriter();
              try{
                   InputStream sPdf;
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                        Connection con=DriverManager.getConnection("jdbc:oracle:thin:@192.168.1.135:1521:orcl","scott","tiger");
                        PreparedStatement ps,pstmt,psmnt;
                   psmnt = con.prepareStatement("SELECT image FROM pictures WHERE id = ?");
                        psmnt.setString(1, "4"); // here integer number '4' is image id from the table.
                   ResultSet rs = psmnt.executeQuery();
                        if(rs.next()) {
                   byte[] bytearray = new byte[1048576];
                        //out.println(bytearray);
                        int size=0;
                        sPdf = rs.getBinaryStream(1);
                        response.reset();
                        response.setContentType("application/pdf");
                        while((size=sPdf.read(bytearray))!= -1 ){
                        //out.println(size);
                        response.getOutputStream().write(bytearray,0,size);
                   catch(Exception e){
                   System.out.println("Failed Due To "+e);
                        //out.println("<h2>Failed Due To "+e);
              //out.close();
    OP
    PDF-1.4 %âãÏÓ 2 0 obj <>stream xœ+är á26S°00SIá2PÐ5´1ôÝ BÒ¸4Ü2‹ŠKüsSŠSŠS4C²€ê P”kø$V㙂GÒU×713CkW )(Ü endstream endobj 4 0 obj <>>>/MediaBox[0 0 595 842]>> endobj 1 0 obj <> endobj 3 0 obj <> endobj 5 0 obj <> endobj 6 0 obj <> endobj xref 0 7 0000000000 65535 f 0000000325 00000 n 0000000015 00000 n 0000000413 00000 n 0000000168 00000 n 0000000464 00000 n 0000000509 00000 n trailer <<01b2fa8b70ac262bfa939cc786f8770c>]/Root 5 0 R/Size 7/Info 6 0 R>> startxref 641 %%EOF
    plz help me out.

  • Display a PDF returned as a base64 encoded clob from web service

    I'm trying to display a PDF document returned from a SOAP v1.1 web service. I'm able to return the XML into a collection using a process of type 'web service', but am struggling to display the document.
    This is the code I'm using to (attempt to) display the document, which doesn't return anything. If I exclude the clobbase642blob conversion an Adobe Reader pop-up appears, but I get an error message stating it is not a supported file type or the file has been damaged, which I would expect since it's a clob rather than a blob.
    DECLARE
      l_length    NUMBER;
      l_file_name VARCHAR2 (4000);
      l_file CLOB;
      l_blobfile BLOB;    
      l_ext VARCHAR2 (4000);
    BEGIN
      SELECT xtab."fileContent", xtab."fileName"
      INTO l_file, l_file_name
      FROM apex_collections c,
              XMLTable(XMLNAMESPACES(DEFAULT 'http://www.stellent.com/Payslip_Services/'),'//Payslip_Get_FileResponse/Payslip_Get_FileResult/downloadFile' passing xmltype001
                COLUMNS "fileContent" clob PATH 'fileContent'
                      , "fileName" PATH 'fileName'
              ) xtab
    where c.collection_name = 'P15_PAYSLIP_GET_FILE_RESULTS';
    l_blobfile := apex_web_service.clobbase642blob(l_file);
    l_length := DBMS_LOB.getlength(l_file);
      If INSTR (l_file_name, '.', -1, 1) > 0 then
          l_ext := SUBSTR (l_file_name, INSTR (l_file_name, '.', -1, 1) + 1);
      End if;
      IF (UPPER (l_ext) = 'PDF') THEN
        OWA_UTIL.mime_header ('application/pdf', FALSE);
      ELSIF (UPPER (l_ext) = 'DOC') THEN
        OWA_UTIL.mime_header ('application/msword', FALSE);
      ELSIF (UPPER (l_ext) = 'TXT') THEN
        OWA_UTIL.mime_header ('text/plain', FALSE);
      ELSIF (UPPER (l_ext) = 'HTML') THEN
        OWA_UTIL.mime_header ('text/html', FALSE);
      ELSE
        owa_util.mime_header('application/octet', FALSE );
      END IF;
      HTP.p ('Content-length: ' || l_length);
      HTP.p ( 'Content-Disposition: attachment; filename="' || l_file_name || '"' );
      OWA_UTIL.http_header_close;
      WPG_DOCLOAD.download_file (l_file);
    END;
    Apex 4.2.2
    Oracle 11g 11.2.0.1.0
    Any suggestions would be appreciated.
    Thanks,
    Graham

    What Adobe product is this a question for? This forum is for XML/API functionality for Adobe Connect. I'll move this question to the appropriate forum.

Maybe you are looking for