Dynamic Images in PDF Report

Hi,
I want to create Badges from employee table (ID, NAME, JOB_TITLE, PHOTO). I downloaded and installed a demo application "USING DYNAMIC IMAGES IN PDF REPORT". It works fine with smale images < 20K. I'm getting the following error for images > 20K :
"ORA-06502: PL/SQL: numeric or value error: raw variable length too long"
it seems like a buffer problem.
could you pls help to solve this problem
Thanks,
Ribhi

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

  • Using Dynamic Images in PDF Reports

    There are a number of threads in the forum where we talked about dynamically including images in PDF reports before. In order to illustrate one technique you can use for doing this, I put together a sample application that illustrates how to dynamically include images that are stored in BLOB columns. I installed the application on apex.oracle.com and made it available for download and local install. You can find the link and login information for this application as well as the download link here:
    http://marcsewtz.blogspot.com/2008/06/one-question-about-pdf-printing-feature.html

    Based on a discussion we had today in another thread, I think it makes sense to add to this thread that the XSL-FO snipped used to get BI Publisher to render images is used when referencing images in a report column, e.g. you included them in your RTF layout using the BI Publisher Desktop Insert->Table option. In this case, the column is referenced with “value-of select”:
    <fo:instream-foreign-object content-type="image/jpg">
    <xsl:value-of select="LOGO"/>
    </fo:instream-foreign-object>
    On the other hand, if you want to dynamically include a company logo, or other data that’s not necessarily repeating, e.g. there’s only one value, then you would use the BI Publisher Desktop Insert->Field option . And you would reference your field as follows:
    <fo:instream-foreign-object content-type="image/jpg">
    <?LOGO?>
    </fo:instream-foreign-object>
    So in this case LOGO refers to either a single-value field, or a single-row report column value.
    Regards,
    Marc

  • Dynamic Images in PDF and Escaping Special Characters

    I used the following to create my own PDFs with dymnamic images:
    http://marcsewtz.blogspot.com/2012_02_01_archive.html (Dynamic Images in PDF - What 32k Limit? )
    I have installed this application on Oracle's free workspace to test.
    The issue I am having is that when there is a special character in the description, such as <>'"& then the the PDF will not open. I have tried using the dmbs_xmlgen.convert to convert the description but haven't had any luck.
    I'm a complete novice with xml. Any help with this is greatly appreciated.
    Thanks,
    Glen

    I have been able to find a solution, but it's not completely perfect. I have changed the "description" field as follows:
    XMLCdata(replace(description,''&'',''and'')) description,
    The characters greater than (>), less than (<), single qoute('), and double quote (") can now all be in the description and will not cause errors. For some reason, I couldn't get the & not to give an error no matter what I tried, so I just replaced the & with the word "and". This solution will work for my needs, but it would be nice to be able to get the & to display.
    Does anyone know of a way to get the & to display correctly?
    Thanks again,
    Glen
    The complete code I am using is below:
    declare
    l_print_layout clob;
    l_xml_data clob;
    begin
    -- load print layout from database
    for c1 in (
    select layout from eba_pdfimg_layouts where id = :P1_LAYOUT
    ) loop
    l_print_layout := wwv_flow_utilities.blob_to_clob(c1.layout );
    end loop;
    -- generate XML data
    for c2 in (
    select dbms_xmlgen.getxml('
    select
    id,
    file_name,
    mime_type,
    XMLCdata(replace(description,''&'',''and'')) description,
    -- description,
    blob2clobase64(image,''Y'') image
    from eba_pdfimg_images
    ') xml_data from dual
    ) loop
    l_xml_data := c2.xml_data;
    end loop;
    -- download print document
    wwv_flow.g_page_text_generated := true;
    apex_util.download_print_document (
    p_file_name => 'image_demo',
    p_content_disposition => 'ATTACHMENT',
    p_report_data => l_xml_data ,
    p_report_layout => l_print_layout,
    p_report_layout_type => 'rtf',
    p_document_format => :P1_FORMAT
    end;

  • Dynamic Images in Crystal Reports

    I have a report with Dynamic Images. I am able to run the report but once I try to export it or try to browse through the pages I get the following error:
    Application popup: Crystal Reports - [Inventory Graphics Report.rpt]: crw32.exe - Application Error : The exception Integer division by zero.
    (0xc0000094) occurred in the application at location 0x2c03a410.

    Hi Don,
    I have read your response 10 times, but I don't really understand it.
    "Your only option is to use the Insert OLE Object or picture into the report" - fine, but how is this achieved from a dataset?
    "CR will not display BLOB fields as pictures" - fine, but maybe I used the word BLOB badly. The dataset column datatype is "byte[]". Will CR display byte[] columns as pictures?
    "You can use a database field to point to which picture file to use, then you won't be using up valuable memory space importing the images into your data set. And the Logo's now dynamic...." - this seems to suggest that the database field is a string storing the file location on disk. Yes? I don't care about memory space in this case and I'm happy to load a binary file into a byte[] column if there is a way of displaying it.
    So, if I understand correctly, you're suggesting the dataset contain a table.row.column which stores the filelocation. How do I convert that to display as a picture (dynamically)?
    Robert

  • How to embed images in PDF reports - help!

    i have gone through the demo at http://www.oracle.com/technology/obe/hol08/apexprnt/apexprnt2_otn.htm and this works fine UNLESS the image is bigger than say 8Kb.
    How do i accomplish embedding an image in a PDF report if these images are (substantially) bigger??
    I have tried asking this on this forum a number of times with no success. Is there ANYONE out there that can help me in this urgent matter?
    Any help would be venerated.
    regards,
    stafford

    Before entering into XSL-FO, I would strongly advise using XML-Spy or a similar product to check the validity of the XSL-FO code.
    Also, I found the process to be highly iterative, building up the XSL-FO piece by piece. For this purpose I created a test harness in which I could enter the XML data and the FO sheet and generate the PDF outside of Apex. This saved quite a lot of time as I did not have to delete the report query each time I wanted to apply a change.
    Anyway heres the XSL-FO for a letter generated by the system.
    I use a bit map for a logo, I checked the size of it and it is 56k.
    I'll submit a further post with the test harness.
    Also, let me know if you need help installing FOP.
    Cheers
    Paul
    <?xml version="1.0" encoding="utf-8"?>
    <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:ora="http://www.oracle.com/XSL/Transform/java/" xmlns:xdofo="http://xmlns.oracle.com/oxp/fo/extensions" xmlns:xdoxslt="http://www.oracle.com/XSL/Transform/java/oracle.apps.xdo.template.rtf.XSLTFunctions" xmlns:xdoxliff="urn:oasis:names:tc:xliff:document:1.1" xmlns:xlink="http://www.w3.org/1999/xlink">
    <xsl:template match="/">
    <fo:root>
    <fo:layout-master-set>
    <fo:simple-page-master master-name="master1" page-height="29.7cm" page-width="21cm" margin-top=".5cm" margin-bottom=".5cm" margin-left="1cm" margin-right="1cm">
    <fo:region-before region-name="region-header" extent="0cm"/>
    <fo:region-body region-name="region-body" margin-top="1cm" margin-bottom="1cm"/>
    <fo:region-after region-name="region-footer" extent="2cm" display-align="after"/>
    </fo:simple-page-master>
    </fo:layout-master-set>
    <fo:page-sequence master-reference="master1" font-family="sans-serif" font-size="10pt" text-indent="2pt" padding-top="2pt" padding-bottom="2pt" padding-left="5pt" padding-right="5pt">
    <fo:title>Hen House Summary Report</fo:title>
    <fo:static-content flow-name="region-header"/>
    <fo:static-content flow-name="region-footer"/>
    <fo:flow flow-name="region-body">
    <fo:block>
    <!-- border-width="1mm" border-top="0.5pt solid #000000" border-left="0.5pt solid #000000" border-right="0.5pt solid #000000" border-bottom="0.5pt solid #000000">
    padding-top="5pt" padding-bottom="5pt"> -->
    <fo:table>
    <fo:table-column column-width="400pt"/>
    <fo:table-column column-width="100pt"/>
    <fo:table-body>
    <fo:table-row>
    <fo:table-cell>
    <fo:block text-indent="5mm" font-family="sans-serif" font-size="12pt" padding-top="5pt">Gov Directorate</fo:block>
    <fo:block text-indent="5mm" font-family="sans-serif" font-size="12pt">A Unit</fo:block>
    <fo:block padding="15pt"></fo:block>
    <fo:block>
    <fo:block text-indent="20pt" font-size="12pt" text-align="left" space-after="4pt">
    <xsl:value-of select="//ROWSET6/ROWSET6_ROW/CONTACT_NAME" xdofo:field-name="CONTACT_NAME"/>
    </fo:block>
    <xsl:for-each select="//ROWSET4/ROWSET4_ROW">
    <fo:block text-indent="20pt" font-size="12pt" text-align="left" space-after="4pt">
    <xsl:value-of select="ADDRESS_LINE"/>
    </fo:block>
    </xsl:for-each>
    </fo:block>
    </fo:table-cell>
    <fo:table-cell>
    <fo:block>
    <fo:external-graphic space-after="4pt">
    <xsl:attribute name="src"><xsl:value-of select="//ROWSET3/ROWSET3_ROW/BASE_URL" />/i/ScotGov_Letter.bmp</xsl:attribute>
    </fo:external-graphic>
    </fo:block>
    <fo:block>
    <xsl:for-each select="//ROWSET1/ROWSET1_ROW">
    <fo:block font-size="10pt" text-align="left">
    <xsl:value-of select="ADDRESS_LINE"/>
    </fo:block>
    </xsl:for-each>
    </fo:block>
    <fo:block padding-top="15pt">
    </fo:block>
    <fo:block font-size="8pt" text-align="left" space-after="4pt">
    <xsl:for-each select="//ROWSET2/ROWSET2_ROW">
    <xsl:variable name="vContactTypeName">
    <xsl:value-of select="CONTACT_TYPE_NAME"/>
    </xsl:variable>
    <xsl:if test="$vContactTypeName = 'RPID_TELNO'">
    <fo:block>
    <xsl:value-of select="CONTACT_TYPE_VALUE"/>
    </fo:block>
    </xsl:if>
    </xsl:for-each>
    </fo:block>
    <fo:block font-size="8pt" text-align="left">
    <xsl:for-each select="//ROWSET2/ROWSET2_ROW">
    <xsl:variable name="vContactTypeName">
    <xsl:value-of select="CONTACT_TYPE_NAME"/>
    </xsl:variable>
    <xsl:if test="$vContactTypeName = 'RPID_EMAIL'">
    <fo:block>
    <xsl:value-of select="CONTACT_TYPE_VALUE"/>
    </fo:block>
    </xsl:if>
    </xsl:for-each>
    </fo:block>
    <fo:block font-size="8pt" text-align="left" space-after="4pt">
    <xsl:for-each select="//ROWSET2/ROWSET2_ROW">
    <xsl:variable name="vContactTypeName">
    <xsl:value-of select="CONTACT_TYPE_NAME"/>
    </xsl:variable>
    <xsl:if test="$vContactTypeName = 'URL'">
    <fo:block>
    <xsl:value-of select="CONTACT_TYPE_VALUE"/>
    </fo:block>
    </xsl:if>
    </xsl:for-each>
    </fo:block>
    </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:block>
    <fo:block padding-top="10pt">
    </fo:block>
    <fo:block>
    <fo:table>
    <fo:table-column column-width="400pt"/>
    <fo:table-column column-width="140pt"/>
    <fo:table-body>
    <fo:table-row>
    <fo:table-cell>
    <fo:block>Our ref: <xsl:value-of select="//ROWSET7/ROWSET7_ROW/SITE_ID" xdofo:field-name="SITE_ID"/></fo:block>
    </fo:table-cell>
    <fo:table-cell>
    <fo:block>Date: <xsl:value-of select="//ROWSET3/ROWSET3_ROW/TODAY" xdofo:field-name="TODAY"/></fo:block>
    </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:block>
    <!--
    -->
    <fo:block padding-top="20pt">
    </fo:block>
    <fo:block>
    <fo:table>
    <fo:table-column column-width="540pt"/>
    <fo:table-body>
    <fo:table-row>
    <fo:table-cell>
    <fo:block>Dear <xsl:value-of select="//ROWSET6/ROWSET6_ROW/CONTACT_NAME" xdofo:field-name="CONTACT_NAME"/></fo:block>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row padding-top="10pt">
    <fo:table-cell text-align="center">
    <fo:block>EGG MARKETING REGULATIONS - EGG PRODUCTION SITE ID APPROVAL - <xsl:value-of select="//ROWSET7/ROWSET7_ROW/SITE_ID" xdofo:field-name="SITE_ID"/></fo:block>
    </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:block>
    <fo:block padding-top="10pt">
    </fo:block>
    <fo:block>
    <fo:table>
    <fo:table-column column-width="540pt"/>
    <fo:table-body>
    <fo:table-row>
    <fo:table-cell>
    <fo:block>I am writing to inform you that your production facility at</fo:block>
    <fo:block padding-top="10pt">
    </fo:block>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row space-after="4pt">
    <fo:table-cell>
    <xsl:for-each select="//ROWSET5/ROWSET5_ROW">
    <fo:block font-size="10pt" text-align="left">
    <xsl:value-of select="ADDRESS_LINE"/>
    </fo:block>
    </xsl:for-each>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row>
    <fo:table-cell>
    <fo:block padding-top="10pt">
    </fo:block>
    <fo:block padding-after="5pt">has been accepted. Your production site has been allocated the following code(s)</fo:block>
    </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:block>
    <fo:block border-width="1mm" border-top="0.5pt solid #000000" border-left="0.5pt solid #000000" border-right="0.5pt solid #000000" border-bottom="0.5pt solid #000000">
    <fo:table>
    <fo:table-column column-width="540pt"/>
    <fo:table-body>
    <fo:table-row>
    <fo:table-cell>
    <fo:block padding="10pt" margin="10pt" >
    <xsl:for-each select="//ROWSET8/ROWSET8_ROW">
    <fo:table>
    <fo:table-column column-width="270pt"/>
    <fo:table-column column-width="270pt"/>
    <fo:table-body>
    <fo:table-row>
    <fo:table-cell>
    <fo:block><xsl:value-of select="EPS_SITE_ID_7"/></fo:block>
    </fo:table-cell>
    <fo:table-cell>
    <fo:block><xsl:value-of select="EPS_SITE_ID_SCO"/></fo:block>
    </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </xsl:for-each>
    </fo:block>
    </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:block>
    <fo:block padding-top="10pt">
    </fo:block>
    <fo:block>What the numbers mean</fo:block>
    <fo:block padding-top="10pt">
    </fo:block>
    <fo:block>0UK - "Organic" production system permitted to use the marketing term "Organic Eggs".</fo:block>
    <fo:block>1UK - "Free Range" production system permitted to use the marketing term "Free Range Eggs".</fo:block>
    <fo:block>2UK - "Barn" production system permitted to use the marketing term "Barn Eggs".</fo:block>
    <fo:block>3UK - "Cage" production system permitted to use the marketing term "Eggs from Caged Hens".</fo:block>
    <fo:block padding-top="10pt">
    </fo:block>
    <fo:block>The number located between the UK and SCO is tyour unique production site code. The SCO and or 7 suffiix denotes that the production site is located in Scotland.</fo:block>
    </fo:flow>
    </fo:page-sequence>
    <fo:page-sequence master-reference="master1" font-family="sans-serif" font-size="10pt" text-indent="2pt" padding-top="2pt" padding-bottom="2pt" padding-left="5pt" padding-right="5pt">
    <fo:title>Hen House Summary Report</fo:title>
    <fo:static-content flow-name="region-header"/>
    <fo:static-content flow-name="region-footer"/>
    <fo:flow flow-name="region-body">
    <fo:block space-after="30pt">
    <!-- border-width="1mm" border-top="0.5pt solid #000000" border-left="0.5pt solid #000000" border-right="0.5pt solid #000000" border-bottom="0.5pt solid #000000">
    padding-top="5pt" padding-bottom="5pt"> -->
    <fo:table>
    <fo:table-column column-width="400pt"/>
    <fo:table-column column-width="100pt"/>
    <fo:table-body>
    <fo:table-row>
    <fo:table-cell>
    <fo:block text-indent="5mm" font-family="sans-serif" font-size="12pt" padding-top="5pt">Rural Payments and Inspections Directorate</fo:block>
    <fo:block text-indent="5mm" font-family="sans-serif" font-size="12pt">Eggs and Poultry Unit</fo:block>
    </fo:table-cell>
    <fo:table-cell>
    <fo:block>
    <fo:external-graphic space-after="4pt">
    <xsl:attribute name="src"><xsl:value-of select="//ROWSET3/ROWSET3_ROW/BASE_URL"/>/i/ScotGov_Letter.bmp</xsl:attribute>
    </fo:external-graphic>
    </fo:block>
    </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:block>
    <fo:block font-weight="bold" space-after="5pt">Stamping</fo:block>
    <fo:block space-after="10pt">All Grade A eggs must be stamped with the relevant producer code. Failure to do so would render the eggs unmarketable for human consumption.</fo:block>
    <fo:block font-weight="bold" space-after="5pt">Records</fo:block>
    <fo:block space-after="5pt">Records <fo:inline font-weight="bold">MUST</fo:inline> be kept for <fo:inline font-weight="bold" text-decoration="underline">EACH HOUSE</fo:inline> showing;</fo:block>
    <fo:list-block>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>1.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>The date(s) of housing and the number of birds placed</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>2.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>The age of birds at the time of housing</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>3.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>Mortality figures for the life of the flock</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>4.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>The date(s) of the depletion and numbers depleted</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>5.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>The number of eggs produced and forwarded to egg packing centres</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    </fo:list-block>
    <fo:block padding-top="10pt">
    </fo:block>
    <fo:block space-after="5pt">Where feed claims are made records <fo:inline font-weight="bold">MUST</fo:inline> be kept showing;</fo:block>
    <fo:list-block>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>1.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>The use of the feed claim</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>2.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>Quantities of feed used</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>3.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>Type of feed supplied of mixed</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>4.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>Source of the feed</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>5.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>Date(s) of delivery</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    </fo:list-block>
    <fo:block padding-top="10pt">
    </fo:block>
    <fo:block font-weight="bold" space-after="5pt">Notification of Changes</fo:block>
    <fo:block space-after="10pt">You are required to inform this Government Department, without delay, of any changes concerning registered data supplied in your original application, including additional housing and/or birds.</fo:block>
    <fo:block padding-top="30pt">
    </fo:block>
    <fo:block space-after="40pt">Yours sincerely</fo:block>
    <fo:block><xsl:value-of select="//ROWSET3/ROWSET3_ROW/RPID_OFFICER" xdofo:field-name="RPID_OFFICER"/></fo:block>
    <fo:block><xsl:value-of select="//ROWSET3/ROWSET3_ROW/RPID_JOB_TITLE" xdofo:field-name="RPID_JOB_TITLE"/></fo:block>
    </fo:flow>
    </fo:page-sequence>
    </fo:root>
    </xsl:template>
    </xsl:stylesheet>

  • Images in PDF reports

    I have a report that indicates the health of a project by showing an image, like a stop light. The query looks like this:
    select     "PM_PROJECTS"."ID" as "ID",
    '<img src="#APP_IMAGES#'||lower(HEALTH)||'.gif">' health_image,
         "PM_PROJECTS"."OWNING_TEAM" as "OWNING_TEAM",
         "PM_PROJECTS"."PROJECT_NAME" as "PROJECT_NAME",
    "PM_PROJECTS"."PHASE" as "PHASE",
         "PM_PROJECTS"."HEALTH" as "HEALTH"
    from     "PM_PROJECTS" "PM_PROJECTS"
    where "PM_PROJECTS"."ID" <> 144
    The client likes paper reports, so I have a link to "print" the report to PDF. However, the image does not appear on the PDF version of the report, just an empty column. Is there a way to display the image in PDF output?
    Thanks in advance!

    Hi
    I'm actually wondering about the same thing, however, I'd like to implement a BLOB-image in a PDF Report.
    I found this link http://blogs.oracle.com/xmlpublisher/2006/05/05#a34 which makes it seem that BI Publisher supports base64encoded pictures. (There's a sample there aswell)
    Now my question is; how can we get the blobdata presented as base64 in the XML from ApEx? Anyone with some experience on this?
    Regards,
    Vidar

  • Displaying images in pdf reports

    a question please..
    can one display only .gif type images or can they also be .jpgs?
    also, is there a limit to the size of the image one displays?
    also, can one control the size of these images in the reports.
    sorry about the above. I have looked around for answers with very little success.
    thanks in advance.

    Hi
    I'm actually wondering about the same thing, however, I'd like to implement a BLOB-image in a PDF Report.
    I found this link http://blogs.oracle.com/xmlpublisher/2006/05/05#a34 which makes it seem that BI Publisher supports base64encoded pictures. (There's a sample there aswell)
    Now my question is; how can we get the blobdata presented as base64 in the XML from ApEx? Anyone with some experience on this?
    Regards,
    Vidar

  • How to insert a dynamic image in a report

    Hi,
    I want to insert the image of a student in a report toghether with all other student's data. The image's file name is in a field of the students' table and the file is stored in a directory of the web application. I am using Visual studio 2010 and the reports are prepared with Crystal Reports 2008 (full product). At design time, when I try to insert an image on the report, it immediately asks for an image file on the computer, so I cant figure out how to insert an image whose path and file name come from a data source.
    Thank you

    Hi Don,
    As I said, when I insert any field in the report, say for instance the Student ID, and then link it to a database field containing the name of the image file to display (I have to concatenate the path to this file name as well), it first shows the report with the Student ID. If I click on it, because of the hyperlink defined at design time, it opens the file (an image in this case) in Internet Explorer, not on the report.
    The same happens if I put an image as an object on the report at design time. In this case as soon as I put the image object on the report it forces me to select an initial image to show on the report. Anyway, I define an hyperlink for this image, pointing it to the image file of the Student, using the database field containing the image file name. When I show the report I see the initial image I was forced to use and when I click it, the hyperlink takes me to the right student image, but even in this case it shows me the right image opening an Internet Explorer session and not on the report. On the report the initial image is still there and never changes.
    What I actually need is a way to put the student's image on the report as soon as it shows the other student's data, as the name, age, ***, and so on, without having to click somewhere to show the student's image.
    Thanks

  • How to display the Image in PDF report by using iText Report

    Hi
    Im trying to display the image which is very big one.
    This is my code
    Document document=new Document();
    PdfWriter.getInstance(document,new FileOutputStream("imagePDF.pdf"));
    document.open();
    Image image = Image.getInstance ("1.bmp");
    document.add(new Paragraph("Images in PDF"));
    document.add(image);
    document.close();
    But the image "1.bmp" is displayed partially. Its not spanning to the next page.
    Can anyone help me to solve this one?
    Thanks in Advance
    dhilip

    Do you actually want the image to span multiple pages? I am not sure that will be possible without splitting the image; the itext mailing list would be the place to ask.
    You could make the the page size big enough for the image using Document.setPageSize()

  • Dynamic images in PDF (Adobe interactive form)

    Hi All,
            I have stored image in database using BLOB.
    I retrieve the image using
         WDWebResourceType.getWebResourceTypeForFileExtension(extn);//get Type
         IWDResource res = WDResourceFactory.createCachedResource(CSVFile, Filename, type1,true);
            res.getUrl(0);
    Where CSVFile is of type InputStream.
    But when I give this link to the image field in interactive form, the image is not getting displayed. (But it is getting displayed in the image UI element of web dynpro.)
    What should I do to show images in PDF from BLOB?
    Please let me know.

    Hi,
    Solve the problem .
    I have created the New node for dropdown. also i have one node already for table.
    The new node i bind to dropdown, the table same for table.
    Its working fine
    Boopathi M

  • How to export dynamic images into pdf

    Hi,
    I need to export a image into PDF which we are getting it from DBase. This returns me the image as BLOB and this we are putting it in between the xml tags. I am passing the xml to xsl-fo. While i tried to export the xml data into pdf using xsl-fo, the content is getting exported into pdf but not the image. I am using FOP, and i have added fop.jar, batik.jar, avalon-xx.jar, jai_codec.jar and jai_core.jar to my class path. I am putting my sample xsl and xml here.
    xml:
    <RTFDrugReport>
    <ImagePath>http://www.thomson-pharma.com/tp/images</ImagePath>
    <NewsEdge>
    <NewsItem>
    <StoryId><![CDATA[200705223600.15_2774000daba43be0]]></StoryId>
    <HeadlineText><![CDATA[NeuroLogica's CereTom Supplies On Site Post-Fight Brain CT During De  La Hoya-Mayweather Weekend]]></HeadlineText>
    <ItemTime><![CDATA[05/23/2007 03:22:24 AM EDT]]></ItemTime>
    </NewsItem>
    </NewsEdge>
    </RTFDrugReport>
    xsl:
    <fo:static-content flow-name="xsl-region-before">
    <fo:block font-family="Helvetica" font-size="14pt" text-align="left" white-space-collapse="false">
    <xsl:variable name="imageName" select="concat(//ImagePath,'/logo_thomson_pharma.png')"/>
    <fo:external-graphic src="'{$imageName}'"/>first
    <fo:external-graphic src="url('{$imageName}')"/>second
    <xsl:value-of select="'{$imageName}'"/>thrid
    <fo:external-graphic src="'{$imageName}'" content-width="100mm" content-height="100mm"/>fourth
    <fo:external-graphic src="'{$imageName}'" content-width="100mm" content-height="100mm"/>fifth
    <fo:instream-foreign-object src='url("///file:/D:/Customization/collage.jpg")' height="3cm" width="3cm"/>
    </fo:block>
    </fo:static-content>
    Any help would be appreciated.

    hi,
    all the UI elements in the adobe form are generally connected to your web-dynpro Context.
    whatever you type in the online adobe form is reflected in the respective context attributes of the dynpro Context of the view where "ur Interactive form UI element is".
    that means you can yourself fill the contents of ur interactive form by working on the get/set methods of the context attributes.
    Likewise you can clear the form by setting all context attributes to blank eg ""
    <b>interactive form has two imp properties:-</b>
    <b>*dataSource</b>
    data source points to the node all whose context attributes will be made available in the interactive form
    <b>*pdfsource</b>
    points to the context attribute which will hold the pdf.
    note that the type of this pdfSorce attribute will be binary.
    if you still have doubts.
    give me your gmail mail id. i 'll send a tutorial.
    with regards,
    -ag.

  • Dynamic images in crystal reports for VS 2008

    The company logo scenario. The solution I'm trying unsuccessfully to implement entails:
    - the logo is not stored in the database, but resides locally on disk
    - strongly typed dataset generated by stored proc in sql server 2008
    - column defined in a dataset table as sqldatatype.binary, null value
    - populate dataset in .net by calling the proc
    - edit the byte[] column and replace null with a binary image
    - push the data into the report
    - print the report to pdf from a web application
    Everything works fine, no errors, but if I try and display the blob in the crystal report, nothing prints. If I remove the blob without modifying any of the above code, everything prints (all tables/rows).
    I have tried cloning the dataset and substituting the binary file into the appropriate column, thinking that the original might be READONLY, but the same result (prints perfectly if I don't try and show the blob).
    Robert

    Hi Don,
    I have read your response 10 times, but I don't really understand it.
    "Your only option is to use the Insert OLE Object or picture into the report" - fine, but how is this achieved from a dataset?
    "CR will not display BLOB fields as pictures" - fine, but maybe I used the word BLOB badly. The dataset column datatype is "byte[]". Will CR display byte[] columns as pictures?
    "You can use a database field to point to which picture file to use, then you won't be using up valuable memory space importing the images into your data set. And the Logo's now dynamic...." - this seems to suggest that the database field is a string storing the file location on disk. Yes? I don't care about memory space in this case and I'm happy to load a binary file into a byte[] column if there is a way of displaying it.
    So, if I understand correctly, you're suggesting the dataset contain a table.row.column which stores the filelocation. How do I convert that to display as a picture (dynamically)?
    Robert

  • Dynamic images in CF report builder 7

    Hi :-)
    Im pulling my hair out over an issue with cfreport builder 7
    and the abillity to dynamically display images.
    I can display images dynamicaly fine using this method:
    application.coverimage & "/" & query.image
    The problem is ive no idea how to say " if there is no image
    available then display noimage.jpg"
    ive played with the iif and fileexists functions but cant
    seem to get it to work within the report builder.
    If using cf report builder 8 the answer is simple, you can
    change an attribute of the image to say "on error do not display
    image" but i really need to do this with CF7.
    Can anyone help please? :-)

    I just found this solution and it helped me, and then I found a nice way to show your "noimage.jpg". You make a report function which sets a persistent variable containing the path to your image (I use the Request scope, so "Request.imagePath" for example). The variable is set to your "noimage.jpg" if it can't find the image path. You can pass parameters to the function from your query, if you wish. The function itself always returns "true". Call this function in the "Print when" property (remember, it's always true so it will always show), and the persistent variable is used as the image path. That way you can have your proper image or your default image show.
    I almost gave up on the CF Report Builder -- the report functions made it cool enough to keep using.

  • Getting Dynamic image in PDF ( form R/3 as URL )

    Hi gurus ,
    I am using a wd java application . In that i want to show employee pic in adobe form . I have RFC in place , that gives me URL (ex : http://retep.... ) containing employee pic Context is of type string
    Now i have craeted a image field in PDF .when i directly binding context data to image dield , Image is not being displayed. i am not sure about scripting and how to bind that context to image field , so that based on the url it dynamically displayes employee pic.
    Any suggestions are most welcome .
    Regards
    Abhay

    In RFC instead of giving the URL ,tell them to give the image as a bytestream.And convert that byte stream into gif or jpg image using the following code,,,,,
    byte[] pdfContent=wdContext.nodeOutput().currentOutputElement().getTestform();
         IWDCachedWebResource pdfResource = WDWebResource.getWebResource(pdfContent,WDWebResourceType.JPG_IMAGE/* or u can use GIF_IMAGE*/);
         try{
              wdContext.currentContextElement().set<this is a user created attribute of typw string>Pdfurl(pdfResource.getURL());
         }catch (Exception e) {
              wdComponentAPI.getMessageManager().reportException(e.getMessage(),true);
    And bind this pdf url to an iFrame or adobe interactive form it wil work..
    xxxxxxxxxxxxxxxxxxxxxx
    Warm regards
    Shanto Aloor
    Edited by: Armin Reichert on Apr 26, 2008 7:06 PM

  • Content server and Dynamic image in PDF

    Hi all,
    I am trying to make up a PDF through SFP transaction in ABAP that has a photograph included in it. This photograph is saved in the content server. The photograph that is inserted depends on a certain number of data and the URL of the picture is dynamically set using function : ARCHIVOBJECT_GET_URI.
    The URL is ok but when I bind this to image object in PDF, the picture does not appear !
    Has anyone dealt with a simlilar problem ????
    Nicolas

    up

Maybe you are looking for

  • Battery drains quickly in my lumia 520

    Even after following all the recommended measures of nokia my battery life is very poor,it lasts 6 hours top with moderate usage and normally discharges @ 7-9 % and while using internet goes up to 16-20 % and when battery is near 30 % left it drains

  • For some reason the "Basic" tab is missing in my Develop folder when trying to edit using LR5..? Plz Help

    For some reason the "Basic" tab is missing in my Develop folder when trying to edit using LR5..? Plz Help

  • CS4 crashes when using the text tool

    Everytime that I click on the text tool to use it, the program freezes up and Microsoft Windows pops up a message saying 'Adobe Photoshop has stopped working.' I've given in to just using Illustrator for my text, but am finding that I need in now in

  • Discolored panel

    im sure this issue isnt unique, but i cant seem to find the thread so ill just have to ask. how would one go about cleaning the gray panelling on the inside of the macbook, namely the area around the trackpad that seems to get darker spots after lots

  • Problem Finding External Device In Final Cut Pro 3 & OS 10.4

    I upgraded our system from os 10.3 to 10.4. Now when we open Final Cut Pro 3 it can not find the external device. Anyone have any idea why and what we can do to rectify the problem? When I switch back to os 10.3 (Which I still had on a second interna