Titanium JIRA Archive
Appcelerator Community (AC)

[AC-4846] Error sending image to Cloud

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2017-03-10T14:40:13.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterPedro Nascimento
AssigneeShak Hossain
Created2017-03-08T15:59:25.000+0000
Updated2017-03-10T14:43:42.000+0000

Description

I tried to send a image to Cloud got from the systemFile in Android and it fails, It was working, but suddenly it's not working anymore It works fine in iPhone, but not Android, . Runtime error: Location:httpclient.js Message: Uncaugth attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference. Source: _send.call(this,options); The code: Titanium.Media.openPhotoGallery({ success:function(event) { alert(event.media);//prints [object blob] Cloud.Photos.create({ photo: event.media, collection_id: idStringCollection, su_id : IdStringUser }, function (evt) { alert("what");//alert never printed because the runtime error }); }, error:function(error) { //whatever is that function } }); Can someone help me in this?

Comments

  1. Sharif AbuDarda 2017-03-08

    Hello, Please attach sample code as a full project. We need to reproduce the issue before providing further support. Thanks.
  2. Pedro Nascimento 2017-03-10

    My Colleague has sent a email for axway, and here is where they reported: Message from Axway Support ==================== General information ==================== Case#: INC0574615 Severity: 2 - Urgent Support Access Code: 131765 Company: TOTVS CONSULTING Contact: Kaio Silva Phone: +55 21 974716794 Service: Appcelerator Public Open date: 2017-03-08 17:49:22 GMT Incident state: Awaiting Customer's feedback Case subject: Photo (ArrowDB) ==================== Message from Axway support ==================== Hi, This is a known issue to SDK version 6.0.0 We had fixed it in our latest SDK 6.0.2.GA, please use that and verify is it is working for you. Note: Used in the xml file Regards, Shuo Best Regards, Ricardo Hernandez

JSON Source