I saw in other posts that it is O.K to store small image files (less then 50 kb) as a binary data inside core data. is it true for sound files that are less then 20 kb?
Thanks
Shani
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s no difference between sound files, image files or any other binary data as far as Core Data is concerned. Under 20kB I would store in Core Data unless you have a good reason not to (such as caching as mentioned), but I would store them as a separate entity if you are not accessing them every time you access an object.
The general rule of thumb I’ve seen mentioned is <10kB store on the entity, >10kB but <100kB store in a separate entity and >100kB store in the file system.