Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的 iOS 项目中,我遇到了一个以字符串格式存储图像的问题。我正在使用 Coredata。我正在使用 SQLite 数据库浏览器将值插入数据库。有没有办法以字符串格式存储图像并在我的项目中检索它。
如果要将 NSData 转换为字符串,可以尝试一些编码,例如base64。
您可以将其存储在NSData类型属性中。
NSData