Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-2464

StackOverflow setting a Blob

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 8.4
    • 8.0
    • JDBC Driver
    • None
    • Workaround Exists
    • Hide

      Construct a Blob to set:

      final InputStream inputStream = ...
      stmt.setBlob(2, new org.teiid.core.types.BlobImpl(new org.teiid.core.types.InputStreamFactory() {

      @Override
      public InputStream getInputStream() throws IOException

      { return inputStream; }

      }));

      Show
      Construct a Blob to set: final InputStream inputStream = ... stmt.setBlob(2, new org.teiid.core.types.BlobImpl(new org.teiid.core.types.InputStreamFactory() { @Override public InputStream getInputStream() throws IOException { return inputStream; } }));

      A regression in TEIID-174 left a recursive call in the PreparedStatement inputstream blob setter.

              rhn-engineering-shawkins Steven Hawkins
              rhn-engineering-shawkins Steven Hawkins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: