I'm building a messaging app, users of course can send text messages to each other, and now I want to add images sending support.
I have a NSManagedObject
subclass ChatMessage
to represent a chat message with properties like messageId, senderId, senderName, text, receiverId...
Now what is best practice to deal with the images?
I'm not talking about how to send and receive images, I'm talking about how to save them (when user get an image and when user upload and send an image)
Is it a good idea to add an image property to ChatMessage
and save it with Core Data? or maybe save it to separate file? Do I need to resize them before saving? Should I expecte to have particular problems when I deal with images?