Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2455] Blob Object does not provide access to the raw data

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2012-07-26T12:08:39.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterTim.Alosi
AssigneeNeeraj Gupta
Created2011-04-15T03:20:15.000+0000
Updated2012-07-26T22:03:14.000+0000

Description

What I am trying to do is hash an image. Unfortunately (using SDK 1.4.1.1 and iOS 3.2) it does not appear that there is any way to access the raw data (in an array of bytes or as a string etc). So the built in MD5 digest function throws an error, and other javascript based hashing algorithms are not useful either.

For the Blob object, access to the raw data should be provided.

Thank you.

Comments

  1. Stephen Tramer 2012-07-26

    Cannot reproduce SDK 2.2.0.014b86f on iPhone Sim 5.1. Test code:
       var image = Ti.UI.createImageView({
       	image:'images/chat.png'
       });
       	Ti.API.info(Ti.Utils.md5HexDigest(image.toBlob()));	
       
  2. Stephen Tramer 2012-07-26

    Reopen to edit comment

JSON Source