Jorn
Jorn

Reputation: 1044

QLPreviewController with Core Data as data source

I am trying to preview common files by using QLPreviewController. The files I have stored are stored in Core Data. The problem is that QLPreviewController asks for a URL to the file, which I don't have. Is there a way of combining QLPreviewController with Core Data? The files I have are stored in the database itself, but with Allow external storage checked, so some files might be stored separately.

Upvotes: 0

Views: 242

Answers (1)

Steven Jiang
Steven Jiang

Reputation: 1004

It is better to store the path of binary data in core data.

This link explains well.

Storing images in Core Data or as file?

Hope it is helpful.

Upvotes: 1

Related Questions