We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cc7be6 commit 98c8b87Copy full SHA for 98c8b87
ios/ReactNativeBlobUtil/ReactNativeBlobUtil.mm
@@ -680,8 +680,7 @@ - (void)readFile:(NSString *)path
680
}
681
if([encoding isEqualToString:@"ascii"]) {
682
resolve((NSMutableArray *)content);
683
- }
684
- if([encoding isEqualToString:@"base64"]) {
+ } else if([encoding isEqualToString:@"base64"]) {
685
resolve([content base64EncodedStringWithOptions:0]);
686
} else {
687
resolve([[NSString alloc] initWithData:content encoding:NSUTF8StringEncoding]);
0 commit comments