{ "id": "106437", "key": "TIMOB-12079", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-04-25T15:50:30.000+0000", "created": "2012-12-12T22:36:15.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "exalture" ], "versions": [ { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" }, { "id": "14613", "description": "Release 2.1.4", "name": "Release 2.1.4", "archived": true, "released": true, "releaseDate": "2012-11-12" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2017-03-24T17:53:13.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "*Problem description*\r\nWhen writing an image obtained from a TCP socket to file, the file is becoming corrupt and the image isn't displayed. The binary data that we are receiving from the socket is proper in size but after writing to the file the size is greater than the actual image.\r\n\r\n*Log*\r\n{code}\r\n12-12 14:28:02.150: I/TiAPI(29051): Successfully total read. 83122\r\n12-12 14:28:02.150: I/TiFileProxy(29051): (KrollRuntimeThread) [2,1061] Unable to write to an unrecognized file type\r\n{code}\r\n\r\n*Test case*\r\nAttached.", "attachment": [ { "id": "34125", "filename": "zTCP.zip", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-12T22:36:15.000+0000", "size": 755070, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: Data retrived from a socket is corrupt when writing to file", "creator": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "231136", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and confirmed on Samsung Galaxy S2 2.3.6 and Android Emulator Ti SDK 3.0.0, 2.1.3 GA, and 2.1.4 GA.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-12T22:40:06.000+0000", "updated": "2012-12-12T22:40:06.000+0000" }, { "id": "243343", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces \n\nTested with\n\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 (03/11/13 15:43 0c88429)\nTitanium SDK version: 3.0.2 (02/07/13 16:46 a4def81)\nDevice: Samsung galaxy s duos Android version: 4.0.4\n\njithinpv", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-21T04:23:26.000+0000", "updated": "2013-03-21T04:23:26.000+0000" }, { "id": "249029", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Couple of issues with the sample.\r\n\r\n1. The error \"Unable to write to an unrecognized file type\" is because the tmpFile.write(e.buffer, true) where e.buffer is of Titanium.Buffer and File.Write doesn't support this Buffer type\r\n2. The file size is too large because the file is not binary. Use FileStream(Ti.Filesystem.openStream) instead of File to write the binary data", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-04-25T15:50:30.000+0000", "updated": "2013-04-25T15:50:30.000+0000" }, { "id": "415586", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T17:53:13.000+0000", "updated": "2017-03-24T17:53:13.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }