{ "id": "151501", "key": "AC-381", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2015-11-26T05:43:41.000+0000", "created": "2015-09-25T13:26:33.000+0000", "labels": [ "android", "imageupload" ], "versions": [], "issuelinks": [], "assignee": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "updated": "2015-11-26T05:43:41.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Hi All,\r\nI am trying to upload image from gallery to server,i am selecting the image and converting the image to bytes by using the following code.\r\n\r\nTitanium.Media.openPhotoGallery({\r\n saveToPhotoGallery : true,\r\n allowEditing : false,\r\n success : function(event) { \r\n var myBlob = event.media; \r\n var bytes = String(Ti.Utils.base64encode(myBlob));\r\n\r\n Ti.API.info('base64encode========='+bytes);\r\n }, \r\n allowImageEditing : true,\r\n mediaTypes : [Ti.Media.MEDIA_TYPE_PHOTO]\r\n});\r\n\r\ni am send this string to server through webservice but image is not uploading.\r\n\r\nsame i have done in java,both strings are coming same upto some level but java string is huge compare to titanium provided.\r\nby passing java string through web service i am able to upload image.\r\nplease help me how to resolve this thanks in advance.\r\n", "attachment": [], "flagged": false, "summary": "Unable to upload image with titanium provided Ti.Utils.base64encode(image)", "creator": { "name": "baludonthula", "key": "baludonthula", "displayName": "Balakrishna", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "baludonthula", "key": "baludonthula", "displayName": "Balakrishna", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Windows 7,Titanium 4.1 ", "comment": { "comments": [ { "id": "365039", "author": { "name": "baludonthula", "key": "baludonthula", "displayName": "Balakrishna", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi ,\r\nBy using ArrowDB is it possible to upload gallery images to our own server ", "updateAuthor": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "created": "2015-09-26T12:35:36.000+0000", "updated": "2015-11-10T08:40:45.000+0000" }, { "id": "371107", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~balu], You follow this tutorial on [how to upload image to server from gellary|http://code.tutsplus.com/tutorials/titanium-mobile-build-an-image-uploader--mobile-8860]. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2015-11-23T07:34:41.000+0000", "updated": "2015-11-23T07:34:41.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }