我想将图像的 EXIF 数据存储在 DictRequest
.
我该怎么做?请帮我
下面是代码:
ALAssetRepresentation *rep = [temp defaultRepresentation];
StrPath = [StrPath stringByAppendingFormat:@"%d.%@",(int)timeInterval,strImageType];
UIImage *image = [UIImage imageWithCGImage:[rep fullResolutionImage]];
NSLog(@"Image width %f Image height %f",image.size.width,image.size.height);
NSData *dataObj = nil;
dataObj = UIImageJPEGRepresentation(image, 1.0);
NSLog(@"Length of data %d",[dataObj length]);
NS tring* StrFileData = [Base64 encode:dataObj];
NSString* strFileHash = [dataObj md5Test];
//----------------------------------------------------
NSMutableDictionary *DictRequest = [[NSMutableDictionary alloc]init];
[DictRequest setObject:srtprefSessionId forKey:@"SessionId"];
[DictRequest setObject:StrPath forKey:@"Path"];
[DictRequest setValue:[NSNumber numberWithBool:isTrash] forKey:@"UploadDirectlyToTrashbin"];
[DictRequest setObject:StrFileData forKey:@"FileData"];
[DictRequest setObject:strFileHash forKey:@"FileHash"];
[DictRequest setObject:result forKey:@"DateCreated"];