I have an entity named Item
. I have an export function that exports all Items to CSV. So name
, weight
, quantity
and etc is all exported correctly. The purpose of this is to save the data so that it may be imported later if all the data was deleted. One of the attributes of Items
is a picture that the user chooses from its own library. How do I export that picture, so that it can be reimported later?
This is on iOS using the latest swift and Xcode.
I know I have not included any code, I am mainly asking for a direction to look. I'm not sure if I can get the location of the image on the device and then save that to the CSV or if there's a similar way. Thank you!