Skip to content

Commit

Permalink
Removed newline base64 encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
juraskrlec committed Jan 18, 2018
1 parent 7fa5128 commit 0cc52b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BlinkID/src/ios/sources/CDVBlinkIdScanner.m
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ - (void)setupDictionary:(NSMutableDictionary *)dict withImageMetadata:(PPImageMe
if (imageMetadata.image == nil) return;

NSData *imageData = UIImageJPEGRepresentation(imageMetadata.image, COMPRESSED_IMAGE_QUALITY / 100.f);
[dict setObject:[imageData base64EncodedStringWithOptions:NSDataBase64Encoding64CharacterLineLength] forKey:resultKey];
[dict setObject:[imageData base64EncodedStringWithOptions:NSDataBase64EncodingEndLineWithLineFeed] forKey:resultKey];
}

- (void)setupDictionary:(NSMutableDictionary *)dict withImagesForResult:(PPRecognizerResult *)result {
Expand Down

0 comments on commit 0cc52b7

Please sign in to comment.