1

in JDBC I use this:

PreparedStatement pupd;

pupd.setBinaryStream(5, new ByteArrayInputStream(buffer, ofs, lgt), lgt);

How can I accomplish the same result using JPA? This is a real time application so converting to some byte[] stored in memory is out of question. Also, I'm writing neutral code, meaning I'm not using any specific JPA implementation.

thanks in advance, ML

MLeiria
  • 633
  • 1
  • 9
  • 22

0 Answers0