[TIMOB-27624] iOS: Ti.Blob.read() is inconsistent on device
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | engSchedule, ios, ios-13 |
Reporter | Gary Mathews |
Assignee | Unknown |
Created | 2019-11-23T00:05:23.000+0000 |
Updated | 2019-12-30T16:32:52.000+0000 |
Description
-
Ti.Blob.read()
seems to cause inconsistent results when generating hashes on device
*TEST CASE*
const binaryFile = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, 'Logo.png'),
blob = binaryFile.read();
if (Ti.Utils.sha1(blob) === '668e98c66d8a11ef38ab442d9d6d4a21d8593645') {
console.log('success!');
}
I tried multiple times on 2 different iOS devices with iOS 13.x for an image. I am getting same hash value. [~ahutton] Can you try at your end please?