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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to