Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. byte[] bData=null;
  2. bData = c.getBlob(0); // Reading the BLOB from DB is very fast. I see the data in bData during debugging
  3. ByteArrayInputStream bos = new ByteArrayInputStream(bData);
  4. ObjectInputStream ois;
  5. try {
  6. ois = new ObjectInputStream(bos);
  7. o=ois.readObject(); // this operation costs most
  8.  
  9. } catch (IOException e) {
  10. e.printStackTrace();
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement