Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8894] MobileWeb: Add support for setting an ImageView image to a Ti.Filesystem file

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2012-06-14T16:25:21.000+0000
Affected Version/sRelease 2.0.1
Fix Version/sRelease 2.1.0, Sprint 2012-12 MW
ComponentsMobileWeb
Labelsqe-port
ReporterChris Barber
AssigneeChris Barber
Created2012-04-25T22:08:17.000+0000
Updated2012-08-08T16:40:26.000+0000

Description

Mobile web errors when you try to set an imageview's image to a path of a filesystem file. Need to detect if the image url is in appdata:// or tmp://.
var f = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory,'ti.png');
f.write(this.responseData);
imageView.image = f.nativePath;

Attachments

FileDateSize
app.js2012-06-14T16:11:36.000+0000609

Comments

  1. Chris Barber 2012-06-14

    Pull request: https://github.com/appcelerator/titanium_mobile/pull/2400
  2. Lokesh Choudhary 2012-08-08

    Tested On: Titanium studio : 2.1.1.201207271312 SDK version : 2.2.0.v20120807144112 Android 4.0.4 - default ,chrome 18.0 Iphone 4.3.5 - safari mobile Mountain lion(10.8) - chrome 21.0,safari 6,firefox 14.0.1

JSON Source