Data Connectivity
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Data Connectivity
Message Icon Topic: Blob DataSource Post Reply Post New Topic
Author Message
Roland
Newbie
Newbie


Joined: 10 Jun 2012
Online Status: Offline
Posts: 2
Quote Roland Replybullet Topic: Blob DataSource
    Posted: 13 Jul 2012 at 12:10am
Hallo,
I have a problem that I can't set a Blob-Field in Java-Source-Code.

The program have the following logic.
  1. There is an JavaBean, that will return a ResultSet with the data.
    This resultset is set as DataSource on the ReportDocument.
  2. The ResultSet is created by MockRunner in Code.
  3. In the ResultSet there is a column which have the type java.sql.Types.BLOB.
  4. In the Blob-Column are Bitmaps serialized as Byte-Array
    rs.addColumn("blobbmp", new Blob[]{new SerialBlob(loadImage("bmp"))});
If I use the JavaBean as DataSource in the Crystal Reports Designer, there are no problems. The designer shows me all data and images in the preview window.
But if I set the ResultSet as DataSource in JavaCode, I can't see any data in the generated report.
 
I have set the data in code like this:

document.getDatabaseController().setDataSource(bean.TypenTest(), "TypenTest", "TypenTest");

Then I have exported the report as PDF-File

In the generated pdf-document I can't see any data from the JavaBean.
But if I remove the Blob-Column from the ResultSet, then I can the the other data.

Has anyone a tipp what I can do?
Maybe Blob-Columns are not supported by JavaBean. But I can't find a corresponding hint in documentation.
 
Thanks for your help.
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.047 seconds.