Code example for ObjectInputStream

Methods: readObject

0
	 *  
	 */ 
	public static Object ByteToObject(byte[] bytes) throws IOException {
		try { 
			ByteArrayInputStream bis = new ByteArrayInputStream(bytes);
			ObjectInputStream ois = new ObjectInputStream(bis);
			return ois.readObject();
 
		} catch (Exception e) {
			System.out.println(" BlobToObject ");
			e.printStackTrace();
			return null; 
		} 
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE