Wie serialisiere ich UIImage nach JSON?

ich benutze

imageData = UIImagePNGRepresentation(imgvw.image);

und beim posten

[dic setObject:imagedata forKey:@"image"]; 

nach dem

NSData *data = [NSJSONSerialization dataWithJSONObject:dic options:NSJSONWritingPrettyPrinted error:&theError];

App stürzt jetzt ab App wird aufgrund einer nicht abgefangenen Ausnahme beendet 'NSInvalidArgumentException', Grund:' Ungültiger Typ in JSON-Schreibzugriff (NSConcreteMutableData)