Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2223] iOS: append for blobs is broken

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2012-11-07T19:58:26.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsios, triage
ReporterDave Patton
AssigneeMauro Parra-Miranda
Created2012-10-25T16:45:37.000+0000
Updated2016-03-08T07:41:13.000+0000

Description

Using Mac OS version 10.0.8 Running Titanium with the Iphone Simulator Titanium SDK 2.1.3.GA Deployment Targets: Iphone, Android, Mobile Web The following code blows up on the line encodedBlob.append(encodedBlob2);.. var buf1 = Ti.createBuffer({ value: "1234567890" }); var buf2 = Ti.createBuffer({ value: "1234567890" }); var encodedBlob = buf1.toBlob(); var encodedBlob2 = buf2.toBlob(); encodedBlob.append(encodedBlob2);

Comments

  1. Daniel Sefton 2012-11-05

    Hi Dave, According to the docs http://docs.appcelerator.com/titanium/2.1/index.html#!/api/Titanium.Blob "Android and Mobile Web support an append method, but otherwise blobs are immutable." So do you notice this behavior on just iOS, or on Android and Mobile Web too? Cheers.
  2. Daniel Sefton 2012-11-07

    Only reproducible on iOS, which as the docs state does not support the append method.
  3. Mauro Parra-Miranda 2013-11-24

    Invalid issue.

JSON Source