[TIMOB-1673] Ti.Utils.base64decode returns a blob instead of a string
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2011-04-15T02:59:04.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 |
Components | iOS |
Labels | apidoc, base64decode, defect, ios, iphone |
Reporter | ctredway |
Assignee | Blain Hamon |
Created | 2011-04-15T02:59:03.000+0000 |
Updated | 2017-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
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-...
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.
(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...
Closed as invalid.