在 iPhone OS 上将视频从 UIImagePickerController 保存到 Core Data

发布于 2024-08-07 19:41:08 字数 197 浏览 1 评论 0原文

我需要一些有关如何将视频数据保存到核心数据的指导,以便我稍后可以再次检索它。

我可以毫无问题地检索从 UIImagePickerController 返回的 NSURL,但随后我不确定如何将视频数据保存到 Core Data。我已经可以从核心数据中保存和检索常规图像,但我不确定如何对视频数据执行相同的操作。

如果我能指出正确的方向,我将非常感激。

I need some guidance on how to save video data to core data so that I can retrieve it again later.

I have no problem retrieving the NSURL that is returned from UIImagePickerController but then I'm not sure how to go about saving the video data to Core Data. I can already save and retrieve regular images from Core Data but I'm not sure how to do the same for video data.

If I could be pointed in the right direction I would really appreciate it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

倾听心声的旋律 2024-08-14 19:41:08

我认为这里的想法是将 URL 存储在核心数据存储中,并让视频本身存储在文件系统中。

I think the idea here would be to store the URL in your core data store, and let the video itself be stored in the filesystem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文