Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- byte[] bData=null;
- bData = c.getBlob(0); // Reading the BLOB from DB is very fast. I see the data in bData during debugging
- ByteArrayInputStream bos = new ByteArrayInputStream(bData);
- ObjectInputStream ois;
- try {
- ois = new ObjectInputStream(bos);
- o=ois.readObject(); // this operation costs most
- } catch (IOException e) {
- e.printStackTrace();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement