Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27624] iOS: Ti.Blob.read() is inconsistent on device

GitHub Issuen/a
TypeBug
PriorityMedium
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
LabelsengSchedule, ios, ios-13
ReporterGary Mathews
AssigneeUnknown
Created2019-11-23T00:05:23.000+0000
Updated2019-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!');
}

Comments

  1. Vijay Singh 2019-12-12

    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?

JSON Source