title: How to store .mp3 file into Core Data?
body: <p>I found this code to save the file on disk:</p>
  
  <pre><code>char *saves = "abcd";
  NSData *data = [[NSData alloc] initWithBytes:saves length:4]; 
  NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
  NSString *documentsDirectory = [paths objectAtIndex:0];
  NSString *appFile = [documentsDirectory stringByAppendingPathComponent:@"MyFile"];
  [data writeToFile:appFile atomically:YES];
  </code></pre>
  
  <p>I am new to Core Data. I want to store MP3 files using it. First I want to download it from web URL, then save it in core data.</p>