Image not displayed in pdf generated using Java API for Forms service

Hi,
I am creating a pdf document using Java API for Forms Service.
I am able to generate the pdf but the images are not visible in the generated pdf.
The image relative path is coming in the xml as defined below. The images are stored dynamically in the Livecycle repository each time a request is fired with unique name before the xml is generated.
<imageURI xfa:contentType="image/png" href="../Images/logo.png"></imageURI>
Not sure if I need to specify specify specific URI values that are required to render a form with image.
The same thing is working when I generate pdf document using Java API for Output Service.
As, I need to generate interactive form, I have to use Forms service to generate pdfs.
Any help will be highly appreciated.
Thanks.

Below is the code snippet:
            //Create a FormsServiceClient object
            FormsServiceClient formsClient = new FormsServiceClient(myFactory);
            //Specify URI values that are required to render a form
            URLSpec uriValues = new URLSpec();
                              // Template location contains the whole rpository path for the form
            uriValues.setContentRootURI(templateLocation);
           // The base URL where form resources such as images and scripts are located.  Whole Image path is passed in BaseUrl in the http format.
                  String baseLocation = repositoryPath.concat(serviceName).concat(imagesPath);   
                              uriValues.setBaseURL(baseLocation);                                        
            // Set run-time options using a PDFFormRenderSpec instance
            PDFFormRenderSpec pdfFormRenderSpec = new PDFFormRenderSpec();
            pdfFormRenderSpec.setCacheEnabled(new Boolean(true));           
            pdfFormRenderSpec.setAcrobatVersion(com.adobe.livecycle.formsservice.client.AcrobatVersio n.Acrobat_8);
                              //Invoke the renderPDFForm method and write the
            //results to a client web browser
            String tempTemplateName =templateName;
            FormsResult formOut = formsClient.renderPDFForm(tempTemplateName,
                                          inXMDataTransformed,pdfFormRenderSpec,uriValues,null);
            //Create a Document object that stores form data
            Document outputDocument = formOut.getOutputContent();
            InputStream inputStream = outputDocument.getInputStream();

Similar Messages

  • Image not displaying in pdf report using XSL-FO and using Oracle 11g databa

    Good Afternoon,
    I have created over 15 reports using XSL-fo, with the following syntax to display an image on the pdf:
    fo:block margin-left="0.24cm" margin-right="0.27cm" margin-top="0.0cm" ><fo:external-graphic content-width="scale-to-fit" content-height="scale-to-fit" width="1.73cm" height="1.57cm" >
    <xsl:attribute name="src">'url("http://readiness:7780/i/marforcom_symbol_rpts.gif")'</xsl:attribute></fo:external-graphic>
    </fo:block>
    This syntax works fine when using Oracle 10g, now my database has been upgraded to 11g and my image no longer displays in the reports. I have already upload the image into the database as a workspace image.
    I have tried to point the image @ the image by using url(#WORKSPACE_IMAGE#marforcom_symbol_rpts.gif)
    or <img src ="#IMAGE_PREFIX#marforcom_symbol_rpts.gif")
    and it still doesn't work.
    I have searched this forum trying to come up with a solution that will fix my problem and am unable to.
    Current config: Oracle 11g, using pl/sql gateway.
    I need to know how to point the xsl-fo file to the database, where the image now resides.
    Thanks,
    Mary
    Edited by: MaryM on Jul 25, 2012 3:15 PM
    Edited by: MaryM on Jul 25, 2012 3:51 PM

    Hi,
    I think you need load images to database XDB virtual directory /i/ and then use #IMAGE_PREFIX# substitution.
    This might help to access /i/
    http://www.apex-blog.com/oracle-apex/accessing-i-using-ftp-170.html
    Or use this to load images
    http://oracleinsights.blogspot.fi/2012/05/loading-images-into-oracle-xdb.html
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • How to upload Image to MDM 5.5 SP3 using Java APIs

    Hi,
    I am trying to upload Image to Images table in MDM 5.5 using JAVA API for MDM. But. I'm not able to find particular field in Images table where I need to set the Blob object ( Image data ).
    I'm not aware of the method to set the Blob, there is one for getting the Image data.
    I have gone through I am not able to add images into Catalog thru java API forums posts and tried the code. But with no luck....
    I think this code is for some other MDM version as the fields mentioned are not present in the Images table e.g. DataObject - this field is used in the above posts to set the Blob data but this field does not exist in Images table in MDM 5.5
    Can anyone suggest the solution?
    Thanks and Regards,
    Mausam

    Hi Mausam,
    Please try the following:
    // adding to a image table
    // get the bytes for the image
    byte[] imageBuf = readFile("C:\pic.bmp");
    // setup A2iFields
    fields = new A2iFields();
    fields.Add(new A2iField("DataObject", new
    Value(imageBuf))); // the image binary (required)
    fields.Add(new A2iField("Name", new Value("pic.bmp")));
    // a name for the image
    fields.Add(new A2iField("OrigName", new
    Value("pic.bmp"))); // the original image file name
    (required)
    fields.Add(new A2iField("DataGroupId", new Value(888)));
    // the data group to add to (required)
    fields.Add(new A2iField("OrigLocationId", new
    Value(999))); // the data location of the image
    (required)
    fields.Add(new A2iField("Description", new Value("a
    short description"))); // a short description here
    // add the image
    String imageTable = "Images";
    catalog.AddRecord(imageTable, fields, -1, -1);
    It's taken out of the API guide for SP3 (the example for method AddRecord.
    Best regards,
    Amit

  • Can't display a Tile Layer using JAVA API V2 (based on HTML5)

    Hi Experts,
    I am trying to display a tile layer using JAVA API V2 but i get the below error and nothing shows after that.
    MAPVIEWER-05501: Map tile layer not found. Check map tile layer name and/or data source name.
    Source: OM.layer.Tilelayer.getTileLayerConfig
    *[mvdemo.demo_map]*
    I tried with chrome and firefox browsers which supports HTML5 but same issue. Here is the html code i am using
    <html>
    <head>
    <title></title>
    <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>
    <script type='text/javascript' src='http://localhost:8282/mapviewer/jslib/v2/oraclemapsv2.js'></script>
    <style type= 'text/css '>body {cursor:default;}</style>
    <script language="JavaScript" type="text/javascript">
    function showMap()
    var baseURL = "http://"+document.location.host+"/mapviewer";
    var mapCenterLon = -122.45;
    var mapCenterLat = 37.6706;
    var mapZoom = 4;
    var mpoint = new OM.geometry.Point(mapCenterLon,mapCenterLat,8307);
    var map = new OM.Map(
    document.getElementById('map'),
    mapviewerURL: baseURL
    var tileLayer = new OM.layer.TileLayer(
    "baseMap",
    dataSource:"mvdemo",
    tileLayer:"demo_map",
    tileServerURL:baseURL+"/mcserver"
    map.addLayer(tileLayer) ;
    navigationPanelBar=new OM.control.NavigationPanelBar();
    map.addMapDecoration(navigationPanelBar);
    map.setMapCenter(mpoint);
    map.setMapZoomLevel(mapZoom) ;
    map.init() ;
    </script>
    </head>
    </html>
    Note: inside the body on load i use DIV Id = Map (i skipped that one line of code because it stops rest of the line from displaying in the thread)
    However, I am successful in using the same tile Layer with JAVA API V1
    Please share your thoughts as what could be the fix
    Thanks
    Nag

    Nag,
    inside the body on load i use DIV Id = Map (i skipped that one line of code because it stops rest of the line from displaying in the thread)please surround your code with [ c o d e ] [ / c o d e ] (without the spaces).
    Secondly: this is probably more appropriate for the {forum:id=727} forum.
    Regards,
    Stefan

  • Uploading images whit thumbnail to MDM repository using Java API

    Hello,
    can someone tell me how to upload images whit thumbnail to MDM repository using Java API?
    i get following message using setHasThumbnail(true):
    com.sap.mdm.commands.CommandException: com.sap.mdm.internal.protocol.manual.ServerException: Ungültiger Wert für Parameter
    thanks

    You can upload images to MDM via the API, but the only way to create thumbnails is via the MDM Data Manager application which uses some embedded libraries to do the work.
    Walter

  • How to use java api for function activity in embed oracle workflow?

    because i can't install standalone oracle workflow successfully.
    pls tell me how to use java api for function activity in embed oracle workflow?
    are there some patch or pulg-in package?
    ths a lot...........

    The Java Function Activity Agent is not certified for Oracle Workflow embedded in Oracle Applications. Installing standalone workflow should be a lot easier than what you have found, although it looks like you did hit a Pentium 4 issue with the Oracle Universal Installer. I suggest you contact Oracle Support or Oracle Consulting for assistance.
    because i can't install standalone oracle workflow successfully.
    pls tell me how to use java api for function activity in embed oracle workflow?
    are there some patch or pulg-in package?
    ths a lot...........

  • Newbie who want to use Java API for OLAP

    Hi all,
    I'm trying to learn how to use Java API for Oracle 10.2 OLAP. I went through the Java OLAP API user guide and I'm getting even more confused. Can somebody guide me to some good online materials?
    Many thanks!
    - Andrew

    Hi there,
    Did you see the examples in the Reference doc? :- http://download.oracle.com/docs/cd/B19306_01/olap.102/b14348/toc.htm
    Thanks,
    Stuart Bunby
    OLAP Blog: http://oracleOLAP.blogspot.com
    OLAP Wiki: http://wiki.oracle.com/page/Oracle+OLAP+Option
    OLAP on OTN: http://www.oracle.com/technology/products/bi/olap/index.html
    DW on OTN : http://www.oracle.com/technology/products/bi/db/11g/index.html

  • OBIEE 10G Embedded Image not displayed on PDF

    Hi
    We have some embedded images (source on network share or on the webserver) on a dashboard. On the screen the images are displayed without problems.
    But if we want to print the dashboard (f.e. PDF) the images are not printed. In html-view the images would be displayed.
    Is there a known bug that images can't be printed on dashboard pages or do we have to embed them different?
    Thank you

    Hi Team,
    I do face the same issue of image not displayed in only pdf output format. Our client has deployed OBIEE 10.1.3.4.1 using Weblogic application server and is accesible through a secured url access.
    I have followed the fmap syntax to locate the image, also made sure the image is getting accessed through url, tried with different images of different sizes . In all cases the image display is appearing fine in HTML & Excel output. But not getting displayed only for pdf output.
    Can you please help me with this regard if am missing any specific setup for pdf output. Is there is any pointers or documentation available to get around this issue.
    Thanks in advance.

  • OBIEE 11G Embedded Image not displayed on PDF

    Hi
    I have some embedded images on a dashboard. On the screen the images are displayed without problems.
    But if we want to print the dashboard (f.e. PDF) the images are not printed. In html-view the images would be displayed.
    All the images are referenced with the fmap path.
    Any way to print the images in the pdf ?
    Thank you
    obiee 11.1.1.5
    O.S : Oracle Linux 5.6 x64

    Hi Team,
    I do face the same issue of image not displayed in only pdf output format. Our client has deployed OBIEE 10.1.3.4.1 using Weblogic application server and is accesible through a secured url access.
    I have followed the fmap syntax to locate the image, also made sure the image is getting accessed through url, tried with different images of different sizes . In all cases the image display is appearing fine in HTML & Excel output. But not getting displayed only for pdf output.
    Can you please help me with this regard if am missing any specific setup for pdf output. Is there is any pointers or documentation available to get around this issue.
    Thanks in advance.

  • Image resize : loss of quality by using Java API. What's wrong ?

    We actually have a problem with the resizing of pictures.
    We use jdk 1.4.2.
    We are trying to transform some picture from approx. 2000*1600 to 500*400.
    The result is poor (loss of colors, blur ...)
    We use an affineTransform and some renderingHints.
    There is actually no effect when we change the renderingHints parameters. Why ?
    Here's the code we use:
    import java.awt.geom.AffineTransform;
    import java.awt.image.*;
    import java.io.*;
    import javax.imageio.ImageIO;
    import java.awt.*;
    import javax.swing.*;
    public class Jpeg
        public Jpeg()
        // i  = la largeur de l'image redimensionner
        // s  = le chemin d'acces � l'image original
        // s1 = le chemin d'acces � l'image retaill�e
        public boolean resize(int i, String s, String s1)
           try
                File file  = new File(s);
                File file1 = new File(s1);
                //Parametrage de la lecture
                ImageIO.setUseCache (true);
                BufferedImage src = ImageIO.read(file);
                double d  = src.getWidth();
                double d1 = src.getHeight();
                double d2 = i;
                double d3 = d2 / d;
                if(d1 * d3 > d2)
                    d3 = d2 / d1;
                if(d3 > 0.8D)
                    d3 = 1.0D;
                int j = (int)(d * d3);
                int k = (int)(d1 * d3);
             AffineTransform  tx = new AffineTransform ();
                tx.scale (d3, d3);
                RenderingHints  rh = new RenderingHints (RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
                rh.put (RenderingHints.KEY_ALPHA_INTERPOLATION, RenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY);
                rh.put (RenderingHints.KEY_COLOR_RENDERING, RenderingHints.VALUE_COLOR_RENDER_QUALITY);
                rh.put (RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BICUBIC);
                rh.put (RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);
                rh.put (RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_PURE);
                rh.put (RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
                AffineTransformOp  op    = new AffineTransformOp (tx, rh);
                BufferedImage      biNew = new BufferedImage (j, k, src.getType ());
                op.filter(src, biNew);
                ImageIO.write (biNew, "jpg", new File (s1));
            catch (Exception  e)
                e.printStackTrace ();
                return  false;
            return  true;
        public static void main(String args[])
            Jpeg jpeg = new Jpeg();
            jpeg.resize (Integer.parseInt (args [0]), args[1], args[2]);
    }Here's the original picture http://193.252.12.20/bugimage/14457.jpg
    Here's the resized picture http://193.252.12.20/bugimage/bur.jpg
    Here's the paintshop pro resized picture http://193.252.12.20/bugimage/psp.jpg
    Is there another way to resize pictures ?
    Can we have a better result by using jdk 1.5.0 ?
    Thanks for your help.

    Nothing wrong - it's a feature :).
    "Loss of colours" is connected with Java embedded JPEG decoder. If you transcode to for example PNG format using any image processing program and then resize using Java then colors will be OK.
    "Blur..." is connected with bad implementation of interpolation algorithms in JDK/JRE and can't be fixed :)
    I'm close to finish developing own resizing library which produced the next results from your image (it's a very good image to test). "from_png" means that the source image is PNG.
    <b>Box interpolation</b> (also known as nearest neighbour, but it's the honest implementation, not JDK fake):
    http://www.chainline.com/Box.jpg
    http://www.chainline.com/Box_from_png.jpg
    Well-known <b>Lanczos 3</b>:
    http://www.chainline.com/Lanczos_3.jpg
    http://www.chainline.com/Lanczos_3_from_png.jpg
    Not-well-known <b>Ideal 5S</b> but one of the most qualified:
    http://www.chainline.com/Ideal_5S.jpg
    http://www.chainline.com/Ideal_5S_from_png.jpg
    And 2 interesting s.c. "sharp" filters which make the result sharpen:
    <b>Sharp Light 5</b>:
    http://www.chainline.com/Sharp_Light_5.jpg
    http://www.chainline.com/Sharp_Light_5_from_png.jpg
    <b>Sharp 5</b>:
    http://www.chainline.com/Sharp_5.jpg
    http://www.chainline.com/Sharp_5_from_png.jpg

  • Java API for images retriveal, Create and update in New Java API for SP05 ?

    Hello Everyone,
        Does any one know Which Java API Can be used to Display an Image in main table & API to add an image to Image table and link to Main Table in new release of Java API for MDM SP05.
    Really Appreciate all help.
    Thanks
    Vinita

    Hello Everyone,
        Does any one know Which Java API Can be used to Display an Image in main table & API to add an image to Image table and link to Main Table in new release of Java API for MDM SP05.
    Really Appreciate all help.
    Thanks
    Vinita

  • Image not displayed in html output used webservice to store in a location

    hi
    we have used webservices to store the pdf and html outputs but the problem is when we are seeing the preview in the bi publisher we can see the image in pdf and html but when we run through webservices and see the output files that are stored in some location image in the html output is not displayed but in the pdf we can see the image.
    i have used the direct insertion image option in the header section. is the problem because i have used the direct insertion.
    can you give the idea how to import logo from an external location so that we can check the if it is problem with direct insertion or problem with the webservice as we are storing the output files outside the catlog but it may not be wrong because in pdf we can see the image.
    I am not having any idea how to solve thsi issue..
    Sorry to bother you with these many questions
    Thanks in Advance
    Have a Nice day.

    Please state which BI Publisher version you are using.
    In case it is 10g then please always test the application with the latest patch first!.
    BTW today there is been a new patch 11846804 released for 10.1.3.4.1 (March 2011).
    regards
    Jorge

  • Logo image not displayed in PDF preview in HFR Studio reports

    Hello All
    I need to display a logo image on every page of an hfr report. The logo is visible in web-preview and print preview. But when the report is run in PDF preview, logo is not visible.
    A header text box is also used which visible in all formats but not the logo.
    Any pointers will be greatly appreciated.
    Thanks
    Neha

    The image is a jpg image. I have also tried using and image already saved in hfr's repository.
    But still I'm not able get the image in pdf format of report*
    The same image is visible in web-preview and print preview*
    I don't think issue is because of position of image because I tried including the image in an empty report as well.
    The problem is still there with the pdf preview*
    Is there something else that could be done to display the image in pdf preview of report????
    Thanks in advance..
    Neha

  • Java API for Web Services

    I have a .NET web service and want to make a JAVA API to communicate with the .NET webservice. Is there an easy API that will deal with the SOAP packaging and accomplish the communication for me?

    I'm not sure If I understand you question, but you should be able to take the WSDL description of the .NET web service, point your favorite java development environment at it (either locally or via a URL) and say generate me a WS client for that.
    Most environments include this as one of their tutorials.
    There are also command line tools.
    -- Frank

  • Java API for Forms Module

    Hello ,
    I knew that Oracle providing C API's for Forms modules.
    Is there available in Java ?.
    Thanks in Advance
    Siva

    Hello ,
    I knew that Oracle providing C API's for Forms modules.
    Is there available in Java ?.
    Thanks in Advance
    Siva

Maybe you are looking for

  • Final cut pro x not sharing

    i have the most recent version of final cut (purchased a few months ago). in the past i have been able to "share" then have the options to youtube or whatever. the last two videos that i have edited, when i click on "share", the options listed under

  • How do I make the firefox toolbar come back? I was trying to get rid of ask toolbar and they both disappeared.

    I was trying to eliminate the ask.com toolbar that I did not want, and I somehow eliminated the firefox toolbar too. I want the firefox toolbar back. I also am getting ask.com when I open a new tab, even though mozilla is my homepage with google show

  • Error importing data in 10.2.0.4

    We have a production 10.2.0.4 database. The database had crashed and I needed to export data and import data back in using data pump. However, I am receiveing the follwing error while importing: RA-31693: Table data object "R"."RIC_TRANSACTION" faile

  • Why can't I ftp files from my workstation to ISE?

    Hello, I get this message when I try to upload the ISE 1.2 upgrade files to my ISE nodes local disk... ISE-01/admin# Copy ftp://<my_workstation_IP_Address>/ise-upgradebundle-1.1.x-to-1.2.0.899.i386.tar.gz. disk:/ Username: rsundstrom Password: % Erro

  • TopSessions CPU USAGE

    Hi, What unit of measurement is used by Oracle TopSessios to measure de CPU USAGE (Statistic Filter = Predefined, Sort Statistic = CPU USAGE) ? What means, for example, a CPU USAGE value of 1200 ? Thanks,      Rodrigo