Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17488] iOS: Filesystem.File - toBlob exists in iOS but not Android

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionWon't Fix
Resolution Date2018-12-19T14:47:02.000+0000
Affected Version/sRelease 3.2.3, Release 3.3.0
Fix Version/sn/a
ComponentsiOS
Labelsqe-3.3.1
ReporterEwan Harris
AssigneeUnknown
Created2014-08-11T22:39:46.000+0000
Updated2018-12-19T14:47:02.000+0000

Description

Description

The method toBlob() which converts a photo to blob format only exists on iOS. When ran on Android it throws an error. *Note* toBlob() is undocumented but there is a method called read() which is [documented](http://docs.appcelerator.com/titanium/3.0/#!/api/Titanium.Filesystem.File-method-read) that does the same thing and works on both platforms.

Steps To Reproduce

1. Import the attached project 2. Run on iOS device/simulator 3. Run on Android device/simulator

Actual Results

*Actual Result on iOS* The app runs on iOS on both 3.3.0.GA and 3.2.3.GA SDK and also 3.3.0 and 3.2.3 CLI *Actual Result on Android* The app fails to run on Android on both 3.3.0.GA and 3.2.3.GA SDK and also 3.3.0 and 3.2.3 CLI

Expected Result

The app shouldn't work on either iOS or Android due to the read() method

Attachments

FileDateSize
FileSystemBlob.zip2014-08-11T22:39:47.000+00004085913

Comments

  1. Ewan Harris 2018-12-19

    This still occurs but as the method is undocumented closing as wont fix

JSON Source