Clob support

Stimulsoft Reports.JAVA discussion
Post Reply
User avatar
Chipo
Posts: 44
Joined: Thu Sep 13, 2012 4:09 am
Location: Sydney, Australia

Clob support

Post by Chipo »

Hi,
currently I experienced problem with reading of CLOB from database.
The only way to fix it was to add the following lines to ReturnXmlOrSqlData.getData

Code: Select all

case 2005:
  try {
    BufferedReader br = new BufferedReader(rs.getClob(i).getCharacterStream());
    StringBuffer buffer = new StringBuffer();
    String line;
    while (null != (line = br.readLine())) {
      buffer.append(line);
    }
    br.close();
    rowData.add(columnLabel, buffer.toString());
  } catch (IOException exc) {
    throw new SQLException(exc.getMessage());
  }
break;
Is there any better way?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Clob support

Post by Alex K. »

Hello,

Your code correct. We will fix the issue and fix will soon be available.

Thank you.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Clob support

Post by Alex K. »

Hello,

Please check archive in the attachment.

Thank you.
Attachments
StimulsoftReports.Fx_Java.zip
(6 MiB) Downloaded 275 times
Post Reply