Saving voice memos to core data.

Hi, I am planning to save audio files (voice memos from audio recorder) in core data using external storage functionality. I cannot save the files elsewhere and hold the file name only in core data, because I want to use CloudKit to synchronise the data between devices.

I am looking for some example code, how to store speech memo in core data and how to fetch it to the app. I know, I need to use "binary data" as data type and use external storage functionality. But how do I save the voice memo to the core data?

Hi Chris,
Try the YouTube channel, BeyondOnesAndZeros, has 2 videos on Core Data if you're still looking - I can't link them here due to Apple Developer Forum rules. For audio, you can select binary data for your audio when creating the data model.


Cheers!
Saving voice memos to core data.
 
 
Q