ID3 Album Art
ID3 Album Art
- Subject: ID3 Album Art
- From: "Mr. Gecko" <email@hidden>
- Date: Sat, 10 May 2008 23:28:03 -0500
Hello I am using this ID3 Framework for cocoa http://drewfamily.homemail.com.au/Cocoa_-_ID3Tag_framework.html
and I want to add an image from the web which is an jpeg.
I have already tried this.
TagAPI *MP3 = [[TagAPI alloc] initWithGenreList:nil];
[MP3 examineFile:MP3Path];
NSBitmapImageRep *image = [[NSBitmapImageRep alloc] initWithData:
[NSData dataWithContentsOfURL:[NSURL URLWithString:[object
objectForKey:@"image"]]]];
NSMutableDictionary *imageDict = [NSMutableDictionary dictionary];
[imageDict setObject:image forKey:@"Image"];
[imageDict setObject:@"jpeg" forKey:@"Picture Type"];
[imageDict setObject:@"image/jpeg" forKey:@"Mime Type"];
[imageDict setObject:@"Album Art" forKey:@"Description"];
NSMutableArray *imageArr = [NSMutableArray new];
[imageArr addObject:imageDict];
[MP3 setImages:imageArr];
[MP3 updateFile];
and it did not work.
can anyone give me an example?
Thanks,
Mr. Gecko
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden