spiluttini
Member
Hi all.
I'have the following question how is possible to print in jde report (rda) a blob filed?
I have to print dynamic image in BI PUBLISHER.
i found two ways.
Include a link to an XML file for an image.
To insert images with element references:
If results XML contains image data that had been stored as a BLOB in the database, then use the following syntax in a form field inserted in the template where you want the image to render at runtime:
<fo:instream-foreign-object content-type="image/jpg">
<xsl:value-of select="IMAGE_ELEMENT"/>
</fo:instream-foreign-object>
where
image/jpg is the MIME type of the image (other options might be: image/gif and image/png)
and
IMAGE_ELEMENT is the element name of the BLOB in the XML data.
Note that you can specify height and width attributes for the image to set its size in the published report. BI Publisher scales the image to fit the box size that you define. For example, to set the size of the example above to three inches by four inches, enter the following:
<fo:instream-foreign-object content-type="image/jpg" height="3 in" width="4 in">
<xsl:value-of select="IMAGE_ELEMENT"/>
</fo:instream-foreign-object>
Specify in pixels as follows:
<fo:instream-foreign-object content-type="image/jpg" height="300 px" width="4 px">
the first work but i have all images already stored on database in blob field so i i want to try the second method.
But in JDE if you create a view it is impossible to select blob field.
So my question is:
it is possible via RDA report to extract blob data to create an xml source with an elemnt wich contains the blob ?
thanks in advanced.
i think is impossible....
I'have the following question how is possible to print in jde report (rda) a blob filed?
I have to print dynamic image in BI PUBLISHER.
i found two ways.
1)
Inserting Images with an Element Reference from an XML FileInclude a link to an XML file for an image.
To insert images with element references:
- Insert a dummy image in the template.
- In Microsoft Word's Format Picture dialog box select the Web tab. Enter the following syntax in the Alternative text region to reference the image URL:
url:{IMAGE_LOCATION}
where IMAGE_LOCATION is an element from the XML file that holds the full URL to the image.
You can also build a URL based on multiple elements at runtime. Just use the concat function to build the URL string. For example:
url:{concat(SERVER,'/',IMAGE_DIR,'/',IMAGE_FILE)}
where SERVER, IMAGE_DIR, and IMAGE_FILE are element names from the XML file that hold the values to construct the URL.
This method can also be used with the OA_MEDIA reference as follows:
url:{concat('${OA_MEDIA}','/',IMAGE_FILE)}
2)Rendering an Image Retrieved from BLOB Data
You can include an image stored as a BLOB in a form.If results XML contains image data that had been stored as a BLOB in the database, then use the following syntax in a form field inserted in the template where you want the image to render at runtime:
<fo:instream-foreign-object content-type="image/jpg">
<xsl:value-of select="IMAGE_ELEMENT"/>
</fo:instream-foreign-object>
where
image/jpg is the MIME type of the image (other options might be: image/gif and image/png)
and
IMAGE_ELEMENT is the element name of the BLOB in the XML data.
Note that you can specify height and width attributes for the image to set its size in the published report. BI Publisher scales the image to fit the box size that you define. For example, to set the size of the example above to three inches by four inches, enter the following:
<fo:instream-foreign-object content-type="image/jpg" height="3 in" width="4 in">
<xsl:value-of select="IMAGE_ELEMENT"/>
</fo:instream-foreign-object>
Specify in pixels as follows:
<fo:instream-foreign-object content-type="image/jpg" height="300 px" width="4 px">
the first work but i have all images already stored on database in blob field so i i want to try the second method.
But in JDE if you create a view it is impossible to select blob field.
So my question is:
it is possible via RDA report to extract blob data to create an xml source with an elemnt wich contains the blob ?
thanks in advanced.
i think is impossible....