Here you can find the source of deSerializeObject(byte[] base64SerializedObject)
public static Serializable deSerializeObject(byte[] base64SerializedObject)
//package com.java2s; /**//from w ww. ja v a 2 s. c o m * License: https://github.com/votingsystem/votingsystem/wiki/Licencia */ import java.io.*; import java.util.Base64; public class Main { public static Serializable deSerializeObject(byte[] base64SerializedObject) { Serializable deserializedObject = null; try { byte[] data = Base64.getDecoder().decode(base64SerializedObject); ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(data)); deserializedObject = (Serializable) ois.readObject(); ois.close(); } catch (Exception ex) { ex.printStackTrace(); } return deserializedObject; } }