sqlite字节到sqlite文件
我有一个.sqlite文件,该文件已转换为字节格式,我想知道如何将其转换为一个格式,我可以在其中操纵其中的数据以及读取。
该代码在Python中,数据库在SQLite中。
任何事情都有用!想有一个方向。
b'SQLite format 3\x00\x10\x00\x01\x01\x00@ \x00\x04\xa4\xb2\x00\x00\x0f\xed\x00\x00\x04~\x00\x00\x00\x18\x00\x00\x002\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\xa4\xb2\x00.S`\x05\x00\x00\x00\x0b\x0f\xc9\x00\x00\x00\x08F\x0f\xfb\x0f\xf6\x0f\xf1\x0f\xec\x0f\xe7\x0f\xe2\x0f\xdd\x0f\xd8\x0f\xd3\x0f\xce\x0f\xc9\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x
I have a .sqlite file that was converted into a byte format, I would like to know how to convert it to a format where I can manipulate the data inside of it, as well as read.
The code is in python and the database is in sqlite.
Anything is helpful! Would like to have a direction to go.
b'SQLite format 3\x00\x10\x00\x01\x01\x00@ \x00\x04\xa4\xb2\x00\x00\x0f\xed\x00\x00\x04~\x00\x00\x00\x18\x00\x00\x002\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\xa4\xb2\x00.S`\x05\x00\x00\x00\x0b\x0f\xc9\x00\x00\x00\x08F\x0f\xfb\x0f\xf6\x0f\xf1\x0f\xec\x0f\xe7\x0f\xe2\x0f\xdd\x0f\xd8\x0f\xd3\x0f\xce\x0f\xc9\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果只是原始字节,您应该能够将其保存到文件:
1。准备一些数据
2。从字节创建一个新的DB文件:
3。test。
If that's just raw bytes you should be able to save it to a file:
1. Prepare some data
2. Create a new DB file from bytes:
3. Test