|
@@ -341,13 +341,13 @@ NSMutableDictionary *fileStreams = nil;
|
341
|
341
|
resolve([fileContent base64EncodedStringWithOptions:0]);
|
342
|
342
|
}
|
343
|
343
|
else if ([[encoding lowercaseString] isEqualToString:@"ascii"]) {
|
344
|
|
-// NSMutableArray * resultArray = [NSMutableArray array];
|
345
|
|
-// char * bytes = [fileContent bytes];
|
346
|
|
-// for(int i=0;i<[fileContent length];i++) {
|
347
|
|
-// [resultArray addObject:[NSNumber numberWithChar:bytes[i]]];
|
348
|
|
-// }
|
|
344
|
+ NSMutableArray * resultArray = [NSMutableArray array];
|
|
345
|
+ char * bytes = [fileContent bytes];
|
|
346
|
+ for(int i=0;i<[fileContent length];i++) {
|
|
347
|
+ [resultArray addObject:[NSNumber numberWithChar:bytes[i]]];
|
|
348
|
+ }
|
349
|
349
|
if(resolve != nil)
|
350
|
|
- resolve([[NSString alloc] initWithData:fileContent encoding:NSASCIIStringEncoding]);
|
|
350
|
+ resolve(@[resultArray]);
|
351
|
351
|
}
|
352
|
352
|
}];
|
353
|
353
|
}
|