I have a variable value declared as Any
in my program.
I want to convert this value to Array[Byte]
.
How can I serialize to Array[Byte]
and back? I found examples related to other types such as Double
or Int
, but not to Any
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…