Oracle lite application not showing blob images in BI reports

Hi,
We have an application running in Oracle lite, we integrated the BI publisher reports (PDF reports are generated Using Data template and RTF file with Java API for BI publisher) with the application. Its been working fine for a long time.
Now we are showing some images on the pdf report, the images are stored in the Oracle lite database as blobs. My application fails when translating the Data template to xml data. I am not getting any exception other than out of memory error after a while.
anybody had the same problem? Let me know if you need more information on this problem.
Any help will be great!!
Regards,
Parthiban Kumar
Edited by: Parthiban Kumar on Nov 12, 2009 10:45 AM

Hi Carsten
That was exactly* I was looking for. Maybe I should Google more in German ;-)
The main problem was that I defined my image outside the first repeating group (that doesn't repeat, it's always just one object) - the first group is followed by 7 more.
Just like the "Name" (that's positioned outside the group in the document header), I positioned the image above the table representing the group.
Doing that, the "Name" is filled correctly, the Image only when the Output Format is Excel or HTML - not Word or PDF ... makes no sense but that's tje way it is.
After moving the image inside the group....it works great!
(One more thing...the image size is fixed to the image you use as "dummy". Is there any way to make that more flexible, because now some scaling happens...)???
@Trent: That was the way we initially did it, but when the size of the row exceeds 32K...you know what happens.. And even with a small image the 32K limit is hit easily
The way I use it now (very similar to Carsten's description) there is no limit....
Thank you all!
Roel

Similar Messages

  • Servlet not showing BLOB image from Oracle in JSF

    hi forum.
    i have a table in oracle in which i m storing images in a BLOB field and file extention (mime type) in a varchar2 field. i can successfully store image. but i want the stored image to be displayed in a graphicimage tag from BLOB. i searched net and found it has to be done using servlet. the code that i used is as following. but i get null pointer exceptions. i know i should get these exceptions but i dont know how to tackle them since there were few things left vague in every site i searched. so i opted to ask the forum.
    here is the code for my jsp page
         <h:graphicImage value="/DisplayImage"/>
    web.xml is amended as follows
                  <servlet>
      <servlet-name>DisplayImage</servlet-name>
      <servlet-class>imageDisplay.DisplayImage</servlet-class>
    </servlet>
    <servlet-mapping>
      <servlet-name>DisplayImage</servlet-name>
      <url-pattern>/DisplayImage</url-pattern>
    </servlet-mapping>
              the servlet itself....
       package imageDisplay;
    import java.sql.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import org.pa.utils.HibernateUtils;
    import org.hibernate.Session;
    public class DisplayImage extends  HttpServlet{
      public void doGet(HttpServletRequest request,HttpServletResponse response)  throws ServletException, IOException
                Session hibernateSession = null;
              hibernateSession = HibernateUtils.currentSession();
              Connection connection;
              connection = hibernateSession.connection();
              Statement st1;
      try{ 
           Class.forName("oracle.jdbc.driver.OracleDriver");
             st1=connection.createStatement();
             ResultSet rs1 = st1.executeQuery("select APP_FILE from EMPLOYEE_DETAILS where EMP_ID = 2");  //APP_FILE IS THE BLOB FIELD
             System.out.println("----------------#@$#@$$%^$%^%&^*^&*(&(*&^%$#$%@#%^%^%&*&^*$^&#%^$%@#$%@#$--------------------");
           String imgLen="";
           while(rs1.next())
           imgLen = rs1.getString(1);
                      int len = imgLen.length();   //THIS IS LINE 35 WHERE ERROR IS EMERGED...............
                     byte [] rb = new byte[len];
                     InputStream readImg = rs1.getBinaryStream(1);
                     int index= readImg.read(rb, 0, len); 
                System.out.println("index----#@$#@$$%^$%^%&^*^&*(&(*&^%$#$%@#%^%^%&*&^*$^&#%^$%@#$%@#$------------"+index);
                response.reset();
                response.setContentType("image/jpg");
                response.getOutputStream().write(rb,0,len);
                response.getOutputStream().flush();
      st1.close();
      response.getOutputStream().close();
    } catch (Exception e){
      e.printStackTrace();
      the error i get is
    index----#@$#@$$%^$%^%&^*^&*(&(*&^%$#$%@#%^%^%&*&^*$^&#%^$%@#$%@#$------------
    java.lang.NullPointerException
         at imageDisplay.DisplayImage.doGet(DisplayImage.java:35)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
         at java.lang.Thread.run(Unknown Source)bundle of thanks in advance for reading my problem persistantly and your help that i am desperately looking for
    Edited by: jaykio77 on Jan 11, 2012 4:09 AM
    Edited by: jaykio77 on Jan 11, 2012 4:12 AM

    In stead of copying/pasting code, take the time to read about how JDBC works. Yes that is going to take some time, but when you gain the knowledge you prevent yourself from having to dump your problem on other people, in this case a bunch of friendly strangers.
    This code:
    imgLen = rs1.getString(1);
                      int len = imgLen.length();   //THIS IS LINE 35 WHERE ERROR IS EMERGED...............
                     byte [] rb = new byte[len];
                     InputStream readImg = rs1.getBinaryStream(1);Really doesn't make much sense. This would assume that the first position in the resultset is both a String and a Blob.
    In the mean time, break down your problem. What you want to do is read a blob from a resultset. Right? Thats it, who cares that a servlet is involved, that is not what you are having trouble with. You cannot read the blob.
    That is vital to realize as you can narrow your google search to "java resultset blob". Guess what popped up as the first hit for me:
    http://www.java2s.com/Code/Java/Database-SQL-JDBC/GetBLOBdatafromresultset.htm

  • Maverick 10.9 - Maps Application not showing map images

    Just installed Maverick and the Maps application does not show the map images (Standard, Hybrid, or Satellite) - see below.  Otherwise everything seems to be working in the sense if you create a drop pin it will show the address, etc.  Any ideas?

    Ended up doing a clean install of Mavericks for other reasons and the Maps app now working.

  • Album application not showing my images

    I have recently switched phones and moved my 32gb card from my old Xperia to my new one. 
    I use ES File Explorer to manage files as I like knowing the 'In's and Out's' of locations of files etc. 
    My album application installed on my new phone (I had gallery and Xperia gallery on my previous phone and I also had trouble with them) is not displaying any pictures stored on my Micro SD and will only display images taken with the camera on this phone (DCIM Folder) . 
    Has anyone had or is anyone else experiencing these issues and does anyone know of any ways I can solve these problems. 
    Thank You
    Solved!
    Go to Solution.

    Could it be the microSD that has a fault? Does the same occur if the photos are stored in internal memory?
    All we have to decide is what to do with the time that is given to us - J.R.R. Tolkien

  • Photos 1.0 not showing all images from Photos Library.photoslibrary folder/file after update install

    I installed the update that changed my iPhoto to Photos 1.0, and the new Photos program is not showing all images from Photos Library.photoslibrary file/folder (not sure to call it file or folder since it is actually a folder with all my pics but it acts more like a file) after update install.  The Photos Library.photoslibrary file/folder shows to be 55 gb in size, and it shows to be loaded into the photos program, but there are maybe a few weeks of pictures showing instead of a few years.  Lots of pictures in the 55 gb are not showing for some reason. 

    No - iPhotos has not replaced anything - it is new and an addition - iPhoto is still on your system in the applications folder and still works just fine
    Outlook is not supported by Photos - not sure if the support must come form Apple or MS as Photos uses a different interface to external packages than iphoto did
    LN

  • Crystal HTML viewer will not show embedded image from Infoview image store

    I am having an issue with the html and dhtml viewers not showing an image I have embedded inside a crystal report.  The image has been stored in infoview and embedded into the report from that source.  Using the Crystal ActiveX viewer works fine in this case and shows the image.  The html viewers however show the blank box with the red X in the top left corner when Internet explorer can't find an image.
    Now, if I right click on the image and get it's properties I get this URL:
    http://vsx2af0x/crystalreportviewers115/imagehandlerdotnetbridge.aspx?dynamicimage={B8FDE586-08D3-4A14-896C-0FE19AC3DB90}.png
    If I take that url and try to load it directly through Internet explorer I get the following error:
    Exception of type 'System.OutOfMemoryException' was thrown.
    The file is small and only about 20k in size.  If someone can help that would be greatly appreciated.
    Thanks

    Unfortunately I have been unable to remove the plug-in. The files is not locked, or shared, but my operating systems thinks it is.
    What happens, when you try?
    When I try to delete the plug-in from
         /Library/Application Support/Aperture/Plug-Ins/Google/Analog Efex Pro/
    with ⌘⌫, I simply get the pop-up panel to enter my administrator password, and the plug-in will be moved to the Trash:
    Don't forget to quit Aperture, before trying to remove the plug-in and to log off and on.

  • Photoshop problem (not showing the image)

    hy,
    i just installed photoshop on my new laptop and it does not show any images when i open them.
    like you can see in teh image that i posted i have a picture opened (its also so in a layer)
    i can use photoshop but i dont see anyting changing in the normal area( is does change in the layer box.)
    i tried with different pictures
    pleas help

    Chris Cox wrote:
    And my money would be on a video card driver that needs to be updated. Disabling OpenGL drawing should avoid the issue temporarily, but the bug is in the video card driver.  (we've seen this a lot with older drivers)
    where can i find the disabling OpenGL Drawing?
         i have a NVIDIA GeForce GT 540M
    My money is on your document window being off screen. 
    At some point you may have had a secondary monitor attached which you have since disconnected, or you drastically changed your monitor resolution.
    Trashing your preferences should fix it instantly:
    To re-create the preferences files for Photoshop, start the application while holding down Ctrl+Alt+Shift (Windows) or Command+Option+Shift (Mac OS). Then, click Yes to the message, "Delete the Adobe Photoshop Settings file?"
    i tried this but i did not work. (however i do work with diferent screens)
    thanks already for you efforts

  • Trying to add 2 slideshows to one page, how can I make a slideshow so it does not show an image...

    Trying to add 2 slideshows to one page, how can I make a slideshow so it does not show an image until they click on the thumbnail?

    You can do this with "composition" widgets.

  • Rendered html pages in results file(html) not showing the images of origina

    hi,
    rendered html pages in results file(html) not showing the images of original page
    when i click on rendered html pages of different html section of a results file.
    both master and tested as well.
    thx
    pasumarthi

    By design, the report will not show the images, will not apply imported css or javascript files and will not show framesets. Also, in the case that an image is shown there is no guarantee that that was the image that was seen when recording/playback the script.
    The rendered html pages that are shown in the report only contains the structure of the html page. If an image is shown the image will be a reference to the location of the image and not a saved copy of the image as part of the report. If the website has a simple structure this can give an idea of what was different. If the website relies extensively on images, stylesheets or javascript to present the information then this report feature becomes less useful.
    Few weeks ago I requested a feature request in order to be able to see in the report the page exactly as it was when recording the script and exactly as it was when the script was played back. In the way that the feature request was written it specifies the use of screen captures or saving the page as a pdf file.
    Regards,
    Zuriel

  • Either automatic or manual clone clustering not showing DAM images

    Hi all,
    I have 2 servers with CQ 5.4 and CRX 2.2, repository size around 8gb:
    Server 1 
    Author :4502 (master)
    Publish : 4503
    Server 2
    *Clustered Publish : 4503 (slave) not showing DAM images.
    * I have tried both automatic clustering (the easier one from the CRX-GUI), and manual clone (cp crx-quickstart -> removed cluster_node.id and edited cluster.properties)
    Why is this happenning?, How can I solve it?
    When I browsed the content of Server 2- clustered publish  4503:crx/index.jsp after the manual clone, the dam assets were already there. Also the size of crx-quickstart folders for author master and publish slave were the same.
    Right now I have running the automatic clustered publish instance 16 hours so far, is showing the pages except DAM images. If I go to CRX/index.jsp it says 503 Internal Server Error.
    Thanks for reading, and will appreciate any help.
    Regards.

    Hi,
    I waited until the synchronising process finished as per the logs, however still the images from DAM are not showing in the clustered slave. If I right click to see any image I got:
    Not Found
    The requested URL /etc/designs/geometrixx/_jcr_content/page/logo.img.png/1282235023667.png was not found on this server.
    This only happens in the slave instance.
    I can add that when I run the master I got this message:
    $> ./start
    22.10.2012 15:36:53 *INFO * Using JVM found at /usr/java/jdk1.6.0_18/bin/java
    /opt/apps/cq5/author/crx-quickstart/server/serverctl: line 251: ulimit: open files: cannot modify limit: Operation not permitted
    22.10.2012 15:36:53 *INFO * Starting in background...
    22.10.2012 15:36:53 *INFO * Started.
    Is there something else that I should look for?
    Thanks for reading.

  • Mavericks Maps App not showing any images?

    My Maps App on the new Mavericks OS is not showing any images.
    Can anybody help me ?

    Quit Mail. Force quit if necessary.
    Back up all data. That means you know you can restore the Mail database, no matter what happens.
    Triple-click anywhere in the line below on this page to select it:
    ~/Library/Mail/V2/MailData/Envelope Index
    Copy the selected text to the Clipboard by pressing the key combination command-C. In the Finder, select
    Go ▹ Go to Folder
    from the menu bar. Paste into the box that opens (command-V), then press return.
    A Finder window will open with a file selected. Move the selected file to the Desktop, leaving the window open. Other files in the folder may have names that begin with "Envelope Index". Move those files, if any, to the Trash.
    Log out and log back in. Relaunch Mail. It should prompt you to re-import your messages. You may get a warning that the index is damaged and that Mail has to quit. Click OK.
    Test. If Mail now works as expected, you can delete the file you moved to the Desktop. Otherwise, post your results.

  • I have backed my Mac Book pro up to my external hard drive using time machine. My iPhoto now does not show any images, even when I upload from my iPhone

    I have backed my Mac Book pro up to my external hard drive using time machine. My iPhoto now does not show any images, even when I upload from my iPhone

    Mac 101: File Sharing
    Mac OS X 10.7 Help: Transfer files between two Mac computers
    Mac OS X 10.7 Help: Set up a Windows computer to share files with Mac users
    Mac OS X 10.7 Help: Use iDisk to share files
    Mac OS X: Sharing your files with non-Apple computers
    How to share a Mac's files with a PC and vice versa.

  • Upon launch of Lightroom after initial instalation a warning came up that said lightroom needs to create temporary files and cant open.  The it opened and the catalog i imported will not show the images.  How can I give permission? Running windows 8.1 64

    Upon launch of Lightroom after initial installation a warning came up that said lightroom needs to create temporary files and cant open.  Then it opened and the catalog i imported will not show the images.  How can I give permission? Running windows 8.1 64 bit.  I have avast virus software.

    Upon launch of Lightroom after initial installation a warning came up that said lightroom needs to create temporary files and cant open.  Then it opened and the catalog i imported will not show the images.  How can I give permission? Running windows 8.1 64 bit.  I have avast virus software.

  • Don't Show BLOB image.

    Version 11.1.1.1.0
    After run the .jspx page don't show any error but don't show blob image in page.
    Servlet Code is
    public class ClsServlet extends HttpServlet{
    public ClsServlet() {
    super();
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    public void doGet(HttpServletRequest request,
    HttpServletResponse response) throws ServletException,
    IOException {
    String appModuleName = "image.model.AppModule";
    String appModuleConfig = "TempAppModule";
    String imgno = request.getParameter("imgno");
    String tblName = request.getParameter("tblnm");
    String clmName = request.getParameter("clnm");
    String pkclmName = request.getParameter("pkclnm");
    String mType ;//= request.getParameter("mtype");
    mType = "jpg";
    String voQuery =
    "select " + clmName + " from " + tblName + " where " + pkclmName +
    " = '" + imgno + "'";
    String mimeType =
    mType; //"gif";//this.getServletConfig().getInitParameter("gif");
    ApplicationModule am =
    Configuration.createRootApplicationModule(appModuleName,
    appModuleConfig);
    am.clearVOCaches("TempView", true);
    ViewObject vo = null;
    //String s;
    System.out.println("voQuery="+voQuery);
    try {
    vo = am.createViewObjectFromQueryStmt("TempView", voQuery);
    } catch (Exception e) {
    System.out.println( e.toString()+" err:VO Exists...");
    System.out.println("before run============= !!!");
    // Run the query
    try {
    vo.executeQuery();
    } catch (Exception e) {
    System.out.println(e.toString());
    // Get the result (only the first row is taken into account
    System.out.println("after run============= !!!");
    Row product = vo.first();
    BlobDomain image = null;
    // Check if a row has been found
    if (product != null) {
    System.out.println("onside product============= !!!");
    // We assume the Blob to be the first a field
    image = (BlobDomain)product.getAttribute(0);
    if (product.getAttributeCount() > 1) {
    mimeType = (String)product.getAttribute(1);
    } else {
    //LOG.warn("No row found to get image from !!!");
    //LOG.warn("No row found to get image from !!!");
    System.out.println("No row found to get image from !!!");
    vo.remove();
    //vo.clearCache();
    return;
    System.out.println("Set Image============= !!!");
    // Set the content-type. Only images are taken into account
    response.setContentType("image/" + mimeType);
    OutputStream os = response.getOutputStream();
    InputStream is = image.getInputStream();
    System.out.println(image.getBufferSize() + "image.getBufferSize()");
    // copy blob to output
    byte[] buffer = new byte[image.getBufferSize()];
    int nread;
    vo.remove();
    //while ((nread = is.read(buffer)) != -1) {
    while ((nread = is.read(buffer)) != -1) {
    // try {
    os.write(buffer);
    System.out.println(buffer.length + "Set Image============= loop!!! " +
    nread);
    System.out.println("==out strim===" + os.toString());
    is.close();
    os.close();
    os.flush();
    // Remove the temporary viewobject
    vo.remove();
    //vo.clearCache();
    // Release the appModule
    Configuration.releaseRootApplicationModule(am, true);
    how can i show this image

    Hard to tell from your code and the information given.
    Do you get the image from the DB?
    Can you shoe the code to show the image on the page?
    Timo

  • Cannot create new Data Source - Oracle ODBC does not show in System DSN

    On Windows 7 x64, Installed Oracle 10g to use ODBC to connect to Oracle database but am not able to create new data source as Oracle ODBC does not show in System DSN.... only shows SQL server etc etc...

    If you installed 32-bit Database Client, try the 32-bit ODBC admin tool: C:\Windows\SysWOW64\odbcad32.exe
    Note that 10.2.0.5 is the earliest "10g" version supported on Win 7.
    http://download.oracle.com/docs/cd/B19306_01/relnotes.102/b15680/toc.htm#BABEBBJF
    As an alternative, try the 11.2 Instant Client.
    For 32-bit apps: http://www.oracle.com/technetwork/topics/winsoft-085727.html
    64-bit/x64: http://www.oracle.com/technetwork/topics/winx64soft-089540.html

Maybe you are looking for