Hi all,
template.getData() returns a byte array and its size is very much greater than the size obtained by template.getSize().
Even in our code, we use only a fixed number of bytes (specified by template.getSize()) from template.getData:
preparedStmt.setBinaryStream(1,new ByteArrayInputStream(template.getData()),template.getSize());
Why do we have this behavior and why cannot template.getData() just return a byte array with size specified by template.getSize()?
Thanks in advance,
Shiva