I have the following question:
I have a variable value in my program which is declared as Any value.
I want to convert this value to Byte Array..
Ho
def anyTypeToByteArray(value: Any): Array[Byte] = { val valueConverted :Array[Byte] = SerializationUtils.serialize(value.isInstanceOf[Serializable]) valueConverted } def ByteArrayToAny(value: Array[Byte]): Any = { val valueConverted: Any = SerializationUtils.deserialize(value) valueConverted }