getBytes vs getBinaryStream vs getBlob for getting data out of a BLOB column
问题 There are 3 different ways to get data out of a BLOB column from a ResultSet getBytes getBinaryStream getBlob Also, the Blob object returned by getBlob also has getBytes and getBinaryStream methods available on it. Are there any particular reasons (performance, memory, database specific problems) that I should pick one over the other? The Blob object also has a free() call that has been introduced since JDBC 4.0. Does that make a difference? 回答1: If you're going to be pulling a lot of data (i