反序列化字符串缓冲区
我有一个 db varchar 字段,看起来像 Java StringBuffer 序列化的结果:
íjava.lang.StringBuffer [many random characters here removed for this question]
如何将其反序列化为 String?
I have a db varchar field looks like the result of Java StringBuffer serialization:
íjava.lang.StringBuffer [many random characters here removed for this question]
how do I deserialize it into String?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
本质上,您需要这样做:
您必须希望能够真正获取序列化生成的原始字节,并且它们在进出数据库的过程中没有被转换。
Essentially you need to do this:
You'll have to hope that you can really get the original bytes produced by the serialisation back, and that they haven't been transformed on their way to and from the DB.