Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1673] Ti.Utils.base64decode returns a blob instead of a string

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2011-04-15T02:59:04.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsiOS
Labelsapidoc, base64decode, defect, ios, iphone
Reporterctredway
AssigneeBlain Hamon
Created2011-04-15T02:59:03.000+0000
Updated2017-03-02T19:24:38.000+0000

Description

When a string is decoded it is returned as a blob instead of a string, even doing a toString or casting as a String() does not work.

iphone iOS 4 and sdk 1.4

Comments

  1. Brion Vibber 2011-04-15

    Returning a blob sounds correct to me, but you should be able to decode a binary blob into a string with a given encoding as well.

    Since the blob type is undocumented in Titanium Mobile, it's unclear how you would do this or if there's actually a way implemented:

    https://appcelerator.lighthouseapp.com/projects/32238/tickets/1580-titaniumblob-tiblob-missing-from-mobile-api-documentation"> https://appcelerator.lighthouseapp.com/projects/32238/tickets/1580-...

  2. Stephen Tramer 2011-04-15

    Currently you can use the 'text' property of TiBlob to access the blob's text representation. However we will change the toString for blobs so that it returns this value.

  3. Jeff Haynie 2011-04-15

    (from [218326b7eb517529de4fc73fab6d22f5ea43bd35]) [#1673] TiBlob's description now includes text representation if available. http://github.com/appcelerator/titanium_mobile/commit/218326b7eb517529de4fc73fab6d22f5ea43bd35"> http://github.com/appcelerator/titanium_mobile/commit/218326b7eb517...

  4. Lee Morris 2017-03-02

    Closed as invalid.

JSON Source