[TIMOB-1673] Ti.Utils.base64decode returns a blob instead of a string
|Fix Version/s||Release 1.5.0|
|Labels||apidoc, base64decode, defect, ios, iphone|
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
- 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:
- 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.
- 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...
- Lee Morris 2017-03-02 Closed as invalid.