In my iPhone project,I need to convert NSData object to file.I have to convert NSData to file and save on project’s resources folder and need to use it.How to save NSData as files and how to reference them on my project as resources?
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.
NSData has a function you can call to write it to a file:
where path is the path and filename you want to write it to.