How can I write an audio file picked from mediaPicker
into some particular folder? We are currently writing image to file path with this method:
[UIImagePNGRepresentation(image) writeToFile:pngPath atomically:YES];
Is it possible for to do the same kind of thing with an audio file?
Thanks.
is a method of the
NSData
class, so, once you have fetched your audio from the media picker, you should totally be able to write it to a file that way.Note: You might have to convert the audio picked to NSData first
Cheers