【发布时间】:2010-04-14 12:24:07
【问题描述】:
是否可以将字节数组转换回List<List<Point>>?
乐:
我将 List<List<Point>> 保存在数据库 BLOB 字段中。
当我检索它时,我想将它转换回List<List<Point>>。
数据保存在 SQLite 数据库中并设置为:
...
cmd.Parameters.AddWithValue("@bynaryData", theList);
...
所以我有byte[],但我不知道如何转换它。反序列化应该如何?
【问题讨论】:
-
字节数组是什么样子的,它是如何创建的?
-
您仍然没有包含将 List
- > 写入字节数组字段的代码。
-
已更新 - 需要额外信息吗?谢谢