I want to save some images on a folder on my local machine (example documents folder). And then save the url in sqlite database. How can i do this ? I also want to retrieve the images and then display it.
Share
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.
You can navigate to the Documents folder for your application and then you can save the
UIImageby usingUIImagePNGRepresentation, which returnsNSData.Sample code:
Then you just have to put the path/filename in your database and retrieve it when you need it.