Yes, I use JDBC

I specify the LONG data as bytes in db

here follows the java code :

      PreparedStatement stmt =
theConnection.prepareStatement(updateStr.toString());
      ...
      byte[] bytes = ((RepBlobInfo)itsInfo).getTemplate();
             if (bytes != null && bytes.length>0)
                  {
                  stmt.setBinaryStream(2, new
ByteArrayInputStream(bytes),bytes.length);
                         }
                  else
                  {
                  stmt.setBinaryStream(2, null, 0);
                  }

      int resultCount = stmt.executeUpdate();



-- 
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to