Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6280] iOS: base64 encoding inconsistent for iOS simluators and iOS devices

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2011-12-06T12:33:29.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sSprint 2011-49, Release 1.8.0.1
ComponentsiOS
Labelsn/a
ReporterDustin Hyde
AssigneeSabil Rahim
Created2011-11-22T13:23:47.000+0000
Updated2014-06-19T12:44:04.000+0000

Description

Attachments

FileDateSize
base64 encode iphone-pad devices.png2011-11-22T13:23:47.000+000092241
base64 encode iphone-pad simulator and android sim-device.txt2011-11-22T13:23:47.000+00001630

Comments

  1. Sabil Rahim 2011-12-06

    This occurs as apple reduces the size of all png included in theapp while running for device using Pngcrush and thereby changing the actual file you are trying to encode here. This only happens for device builds and thus the difference in behavior between Simulator and device. Solution: try running the same test with a jpg file instead of a png , you will see the result of encoding on device and simulator will be the same. Marking it as invalid.
  2. Dustin Hyde 2013-05-01

    Closing. The encoding is correct. The test app and/or instructions are not.

JSON Source