|
|
|
Re: Embedding images [message #67864 is a reply to message #67742] |
Fri, 12 August 2005 23:19 |
Linda Chan Messages: 845 Registered: July 2009 |
Senior Member |
|
|
Hi Joe,
Thanks for your contribution.
We are indeed planning to add support of the BLOB and CLOB data types in BIRT and the ODA framework in the next release.
See Bugzilla #95793: https://bugs.eclipse.org/bugs/show_bug.cgi?id=95793
Linda
Joe Rybacki wrote:
> Well, I finally figured it out, I had to change 3 birt jars. data,
> data.oda, and report.data.oda.jdbc, the plugin.xml and manually edit my
> report. I"ve attached the source changes in 3 zip files. Basically the
> problem was that the binary column was converted to a string effectively
> destroying the image coming out of the database. Also had to support the
> byte array as an oda type.
>
> The plugin.xml change for report.oda.jdbc:
> FROM:
> <dataTypeMapping
> nativeDataType="BINARY"
> nativeDataTypeCode="-2"
> odaScalarDataType="String"/>
> To:
>
> <dataTypeMapping
> nativeDataType="BINARY"
> nativeDataTypeCode="-2"
> odaScalarDataType="byte"/>
>
> To embed the image element as an expression in the report file:
>
> <image source="expr">
>
> <expression name="typeExpr">row["mimeType"]</expression>
>
> <expression name="valueExpr">row["picture"]</expression>
>
> </image>
>
> Hope this helps, Maybe this could be incorporated into the birt source code.
>
> Thanks,
> Joe
>
>
> Name: org.eclipse.birt.report.data.oda.jdbc-changes.zip
> org.eclipse.birt.report.data.oda.jdbc-changes.zip Type: WinZip File (application/x-unknown-content-type-WinZip)
> Encoding: x-uuencode
>
> Name: org.eclipse.birt.data.oda-changes.zip
> org.eclipse.birt.data.oda-changes.zip Type: WinZip File (application/x-unknown-content-type-WinZip)
> Encoding: x-uuencode
>
> Name: org.eclipse.birt.data-changes.zip
> org.eclipse.birt.data-changes.zip Type: WinZip File (application/x-unknown-content-type-WinZip)
> Encoding: x-uuencode
|
|
|
Powered by
FUDForum. Page generated in 0.03764 seconds