×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Karthick Bala
Added: Jul 25, 2014 10:16 AM
Views: 5
Tags: no tags
  1.     public static String getBlobAsString(Blob blobVal) throws IOException {
  2.         return getBAISAsString((ByteArrayInputStream)blobVal);
  3.     }
  4.  
  5.     public static String getBAISAsString(ByteArrayInputStream byteArrInpStrm) throws IOException {
  6.         byte[] buff = new byte[byteArrInpStrm.available()];
  7.         byteArrInpStrm.read(buff);
  8.         return new String(buff);
  9.     }