Community Tip - You can change your system assigned username to something more personal in your community settings. X
I have a Thing that has a InfoTable property named alarmList. The alarmList has a Image type column named picture, this column has a default image in definition.
When I use AndroidConnectedThingClient (which extends ConnectedThingClient)'s method invokeService or readProperty to get the alarmList, I get the TimeoutException everytime.
The invokeService just invoke a service simply return the alarmList property.
I got the log from the logcat like below:
I found "de.tavendo.autobahn.WebSocketConnection: fail connection [code = INTERNAL_ERROR, reason = WebSockets internal error (java.nio.BufferOverflowException)".
I think it's meaning the return data is too big to make the under layer program's buffer overflow or just because some bug in the under layer to make this happen?
When I use REST API to do the same thing, everything is OK, the alarmList's content is returned, it has several rows and each row (include it's definithion) has a image data encoded in Base64 like below.
Is it meaning that you cannot transfer InfoTable which has Image data use SDK? Is it meaning you can just do this use REST API? OR, this is definitely a problem in the SDK?
{
"dataShape": {
"fieldDefinitions": {
"alarmList": {
"name": "alarmList",
"description": "",
"baseType": "INFOTABLE",
"ordinal": 1,
"aspects": {
"isReadOnly": false,
"isPersistent": true,
"isLogged": false,
"dataChangeType": "VALUE",
"cacheTime": 0,
"dataShape": "MN_AlarmData"
}
}
}
},
"rows": [
{
"alarmList": {
"dataShape": {
"fieldDefinitions": {
"alarmId": {
"name": "alarmId",
"description": "提醒ID",
"baseType": "STRING",
"ordinal": 1,
"aspects": {
"isPrimaryKey": true
}
},
"alarmName": {
"name": "alarmName",
"description": "提醒名称",
"baseType": "STRING",
"ordinal": 2,
"aspects": {}
},
"alarmState": {
"name": "alarmState",
"description": "",
"baseType": "BOOLEAN",
"ordinal": 8,
"aspects": {}
},
"memberId": {
"name": "memberId",
"description": "成员ID",
"baseType": "STRING",
"ordinal": 3,
"aspects": {
"isPrimaryKey": true
}
},
"period": {
"name": "period",
"description": "提醒时间间隔",
"baseType": "LONG",
"ordinal": 5,
"aspects": {}
},
"picture": {
"name": "picture",
"description": "",
"baseType": "IMAGE",
"ordinal": 7,
"aspects": {
"defaultValue": "/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAYEBQYFB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+7KzsLZ/tr5Cnb03+lHCX4LuHZbYf/fdA\nPwbkd1jzvR02g/dHlMTpdB7h5QVhbL9tfIFb01+lHAX4Ivf7TuR7zMU4AG/Wnynf/wCFUeA8p6NL\noHcPKWYU4Q0gkhqio8kcJp4CUfc+U2OPwOi7ep8p2cabQO4eUzGDSPuyZ05TjcHVrt9X8ptcbhdF\n22rHlOiri1DsWZipB2KIAUzG4fVdvUHlNnRoqrt6ssQUDsAnsANZTpir3COV4yJ3Q8kAPAoHYJ7J\nJACSSSQA/9k="
}
},
"remark": {
"name": "remark",
"description": "提醒备注",
"baseType": "STRING",
"ordinal": 6,
"aspects": {}
},
"startTime": {
"name": "startTime",
"description": "开始时间",
"baseType": "DATETIME",
"ordinal": 4,
"aspects": {}
}
}
},
"rows": [
{
"alarmId": "21342345tasret",
"alarmName": "KFOSDOFDS",
"alarmState": false,
"memberId": "23423424",
"period": 4234,
"picture": "A very long base64 sequence, I cannot copy it, it will make browser stop responding",
"remark": "淡淡的淡淡的淡淡的",
"startTime": 1495086461995
},
{
"alarmId": "dfwof982r230",
"alarmName": "佛挡杀佛发",
"alarmState": false,
"memberId": "423423423",
"period": 234234,
"picture": "A very long base64 sequence, I cannot copy it, it will make browser stop responding",
"remark": "沙发上地方",
"startTime": 1495086461995
}
]
}
}
]
}
05-17 15:53:47.778 7933-24045/com.newstar.xiaohushi_sq.debug D/c.t.c.c.e.CommunicationEndpoint: [Thread-2165] Sending synchronous message, waiting for response [sync key: 12, message: APIRequestMessage [requestId: 12, endpointId: 0, sessionId: 10, method: GET, entityName: *1222, characteristic: Properties, target: alarmList]]
05-17 15:53:47.803 7933-24045/com.newstar.xiaohushi_sq.debug I/System.out: Sending binary Message:
05-17 15:53:47.803 7933-24045/com.newstar.xiaohushi_sq.debug I/System.out: 01 01 00 00 00 0c 00 00 00 00 00 00 00 0a 00 0a 05 2a 31 32 : ?????? ?????????????? ?? *12
05-17 15:53:47.803 7933-24045/com.newstar.xiaohushi_sq.debug I/System.out: 32 32 01 09 61 6c 61 72 6d 4c 69 73 74 00 ff :22 alarmList???
05-17 15:53:47.803 7933-24045/com.newstar.xiaohushi_sq.debug I/System.out: Length = 35 bytes.
05-17 15:53:47.828 7933-17379/com.newstar.xiaohushi_sq.debug D/de.tavendo.autobahn.WebSocketReader: run() : Exception (java.nio.BufferOverflowException)
05-17 15:53:47.828 7933-17377/com.newstar.xiaohushi_sq.debug D/de.tavendo.autobahn.WebSocketConnection: fail connection [code = INTERNAL_ERROR, reason = WebSockets internal error (java.nio.BufferOverflowException)
05-17 15:53:47.828 7933-17377/com.newstar.xiaohushi_sq.debug D/de.tavendo.autobahn.WebSocketReader: quit
05-17 15:53:47.833 7933-17379/com.newstar.xiaohushi_sq.debug D/de.tavendo.autobahn.WebSocketReader: run() : Exception (java.nio.BufferOverflowException)
05-17 15:53:47.833 7933-17379/com.newstar.xiaohushi_sq.debug D/de.tavendo.autobahn.WebSocketReader: WebSocket reader ended.
05-17 15:53:47.833 7933-17380/com.newstar.xiaohushi_sq.debug D/de.tavendo.autobahn.WebSocketWriter: WebSocket writer ended.
05-17 15:53:47.838 7933-17378/com.newstar.xiaohushi_sq.debug D/de.tavendo.autobahn.WebSocketConnection: SocketThread exited.
05-17 15:53:47.838 7933-17377/com.newstar.xiaohushi_sq.debug I/c.t.c.c.c.a.AutobahnClientConnection: [Thread-2150] [websocket id: 0-0] Closing underlying websocket channel
05-17 15:53:47.843 7933-17377/com.newstar.xiaohushi_sq.debug D/de.tavendo.autobahn.WebSocketConnection: Could not send WebSocket Close .. writer already null
05-17 15:53:47.843 7933-17377/com.newstar.xiaohushi_sq.debug I/c.t.c.c.c.a.AutobahnClientConnection: [Thread-2150] [websocket id: 0-0] Unregistering AutobahnClientConnection from ClientEndpoint
05-17 15:53:47.848 7933-17377/com.newstar.xiaohushi_sq.debug D/c.t.c.c.e.CommunicationEndpoint: [Thread-2150] [Endpoint id: 0, connection id: 0-0] removed Connection
05-17 15:53:47.853 7933-17377/com.newstar.xiaohushi_sq.debug I/c.t.c.c.e.CommunicationEndpoint: [Thread-2150] All Connections are closed [endpoint id: 0]
05-17 15:53:47.853 7933-17377/com.newstar.xiaohushi_sq.debug I/c.t.c.c.ConnectedThingClient: [Thread-2150] Communications Endpoint Closed
05-17 15:53:47.858 7933-17377/com.newstar.xiaohushi_sq.debug I/c.t.c.c.c.a.AutobahnClientConnection: [Thread-2150] Websocket has been closed.
05-17 15:53:47.858 7933-17377/com.newstar.xiaohushi_sq.debug D/de.tavendo.autobahn.WebSocketConnection: worker threads stopped
05-17 15:53:47.858 7933-17377/com.newstar.xiaohushi_sq.debug D/de.tavendo.autobahn.WebSocketConnection: fail connection [code = INTERNAL_ERROR, reason = WebSockets internal error (java.nio.BufferOverflowException)
05-17 15:53:47.858 7933-17377/com.newstar.xiaohushi_sq.debug D/de.tavendo.autobahn.WebSocketReader: quit
05-17 15:53:47.858 7933-17377/com.newstar.xiaohushi_sq.debug W/MessageQueue: Handler (de.tavendo.autobahn.WebSocketWriter$ThreadHandler) {be28bdc} sending message to a Handler on a dead thread
java.lang.IllegalStateException: Handler (de.tavendo.autobahn.WebSocketWriter$ThreadHandler) {be28bdc} sending message to a Handler on a dead thread
at android.os.MessageQueue.enqueueMessage(MessageQueue.java:543)
at android.os.Handler.enqueueMessage(Handler.java:631)
at android.os.Handler.sendMessageAtTime(Handler.java:600)
at android.os.Handler.sendMessageDelayed(Handler.java:570)
at android.os.Handler.sendMessage(Handler.java:507)
at de.tavendo.autobahn.WebSocketWriter.forward(WebSocketWriter.java:95)
at de.tavendo.autobahn.WebSocketConnection.failConnection(WebSocketConnection.java:119)
at de.tavendo.autobahn.WebSocketConnection.handleMessage(WebSocketConnection.java:430)
at de.tavendo.autobahn.WebSocketConnection.access$300(WebSocketConnection.java:42)
at de.tavendo.autobahn.WebSocketConnection$ThreadHandler.handleMessage(WebSocketConnection.java:554)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at com.thingworx.communications.client.connection.autobahn.AutobahnConnectionThread.run(AutobahnConnectionThread.java:47)
05-17 15:53:47.858 7933-17377/com.newstar.xiaohushi_sq.debug W/MessageQueue: Handler (android.os.Handler) {e3ac4e5} sending message to a Handler on a dead thread
java.lang.IllegalStateException: Handler (android.os.Handler) {e3ac4e5} sending message to a Handler on a dead thread
at android.os.MessageQueue.enqueueMessage(MessageQueue.java:543)
at android.os.Handler.enqueueMessage(Handler.java:631)
at android.os.Handler.sendMessageAtTime(Handler.java:600)
at android.os.Handler.sendMessageDelayed(Handler.java:570)
at android.os.Handler.post(Handler.java:326)
at de.tavendo.autobahn.WebSocketConnection.failConnection(WebSocketConnection.java:131)
at de.tavendo.autobahn.WebSocketConnection.handleMessage(WebSocketConnection.java:430)
at de.tavendo.autobahn.WebSocketConnection.access$300(WebSocketConnection.java:42)
at de.tavendo.autobahn.WebSocketConnection$ThreadHandler.handleMessage(WebSocketConnection.java:554)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at com.thingworx.communications.client.connection.autobahn.AutobahnConnectionThread.run(AutobahnConnectionThread.java:47)
05-17 15:53:47.863 7933-17377/com.newstar.xiaohushi_sq.debug W/MessageQueue: Handler (android.os.Handler) {e3ac4e5} sending message to a Handler on a dead thread
java.lang.IllegalStateException: Handler (android.os.Handler) {e3ac4e5} sending message to a Handler on a dead thread
at android.os.MessageQueue.enqueueMessage(MessageQueue.java:543)
at android.os.Handler.enqueueMessage(Handler.java:631)
at android.os.Handler.sendMessageAtTime(Handler.java:600)
at android.os.Handler.sendMessageDelayed(Handler.java:570)
at android.os.Handler.post(Handler.java:326)
at de.tavendo.autobahn.WebSocketConnection.failConnection(WebSocketConnection.java:142)
at de.tavendo.autobahn.WebSocketConnection.handleMessage(WebSocketConnection.java:430)
at de.tavendo.autobahn.WebSocketConnection.access$300(WebSocketConnection.java:42)
at de.tavendo.autobahn.WebSocketConnection$ThreadHandler.handleMessage(WebSocketConnection.java:554)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at com.thingworx.communications.client.connection.autobahn.AutobahnConnectionThread.run(AutobahnConnectionThread.java:47)
05-17 15:53:47.873 7933-17377/com.newstar.xiaohushi_sq.debug I/c.t.c.c.c.a.AutobahnClientConnection: [Thread-2150] [websocket id: 0-0] Closing underlying websocket channel
05-17 15:53:47.878 7933-17377/com.newstar.xiaohushi_sq.debug D/de.tavendo.autobahn.WebSocketConnection: Could not send WebSocket Close .. writer already null
05-17 15:53:47.878 7933-17377/com.newstar.xiaohushi_sq.debug I/c.t.c.c.c.a.AutobahnClientConnection: [Thread-2150] [websocket id: 0-0] Unregistering AutobahnClientConnection from ClientEndpoint
05-17 15:53:47.883 7933-17377/com.newstar.xiaohushi_sq.debug E/c.t.c.c.e.CommunicationEndpoint: [Thread-2150] [Endpoint id: 0, connection id: 0-0, connection name: EP_0] FAILED to remove Connection - was not found
05-17 15:53:47.888 7933-17377/com.newstar.xiaohushi_sq.debug I/c.t.c.c.c.a.AutobahnClientConnection: [Thread-2150] Websocket has been closed.
05-17 15:53:47.888 7933-17377/com.newstar.xiaohushi_sq.debug D/de.tavendo.autobahn.WebSocketConnection: worker threads stopped
05-17 15:53:48.498 7933-8076/com.newstar.xiaohushi_sq.debug D/c.t.c.c.e.m.ConnectivityMonitorTask: [Client-EndpointMonitor-1] Entering duty cycle ON
05-17 15:53:48.503 7933-8076/com.newstar.xiaohushi_sq.debug I/c.t.c.c.e.m.ConnectivityMonitorTask: [Client-EndpointMonitor-1] Endpoint not connected [name: EP_0, id: 0]. Attempting [re]connect...
05-17 15:53:48.518 7933-8076/com.newstar.xiaohushi_sq.debug D/c.t.c.c.e.ClientCommunicationEndpoint: [Client-EndpointMonitor-1] Clearing endpoint authentication data [id: 0]
05-17 15:53:48.523 7933-8076/com.newstar.xiaohushi_sq.debug I/c.t.c.c.e.ClientCommunicationEndpoint: [Client-EndpointMonitor-1] Needed to refill connections on client endpoint [id: 0] : [active: 0, max: 1]
05-17 15:53:48.528 7933-24121/com.newstar.xiaohushi_sq.debug D/com.thingworx.communications.client.connection.autobahn.AutobahnConnectionThread: Connection construction thread created: 2166
05-17 15:53:48.528 7933-24121/com.newstar.xiaohushi_sq.debug D/de.tavendo.autobahn.WebSocketConnection: WebSocket connection created.
05-17 15:53:48.533 7933-24121/com.newstar.xiaohushi_sq.debug I/c.t.c.c.c.a.AutobahnClientConnection: [Thread-2166] Created new AutobahnClientConnection: AutobahnClientConnection [id: 0-0]
05-17 15:53:48.538 7933-24121/com.newstar.xiaohushi_sq.debug D/c.t.c.c.c.a.AutobahnClientConnection: [Thread-2166] Autobahn attempting connect
05-17 15:53:48.548 7933-24121/com.newstar.xiaohushi_sq.debug D/de.tavendo.autobahn.WebSocketReader: WebSocket reader created.
05-17 15:53:48.553 7933-24123/com.newstar.xiaohushi_sq.debug D/de.tavendo.autobahn.WebSocketReader: WebSocker reader running.
05-17 15:53:48.553 7933-24121/com.newstar.xiaohushi_sq.debug D/de.tavendo.autobahn.WebSocketConnection: WebSocket reader created and started.
05-17 15:53:48.553 7933-24121/com.newstar.xiaohushi_sq.debug D/de.tavendo.autobahn.WebSocketWriter: WebSocket writer created.
05-17 15:53:48.558 7933-24124/com.newstar.xiaohushi_sq.debug D/de.tavendo.autobahn.WebSocketWriter: WebSocker writer running.
05-17 15:53:48.558 7933-24121/com.newstar.xiaohushi_sq.debug D/de.tavendo.autobahn.WebSocketConnection: WebSocket writer created and started.
05-17 15:53:48.563 7933-8076/com.newstar.xiaohushi_sq.debug I/c.t.c.c.e.ClientCommunicationEndpoint: [Client-EndpointMonitor-1] Preparing new Connection Authentication Request: DispatchingClientEndpoint [id: 0, isConnected: false, open connections: 0, max connections: 1]
05-17 15:53:48.568 7933-8076/com.newstar.xiaohushi_sq.debug D/c.t.c.c.e.CommunicationEndpoint: [Client-EndpointMonitor-1] Sending connection authentication message, waiting for response [sync key: 13, message: AuthRequestMessage [requestId: 13, endpointId: -1, sessionId: -1, method: AUTHREQUEST]]
05-17 15:53:48.573 7933-24123/com.newstar.xiaohushi_sq.debug W/de.tavendo.autobahn.WebSocketReader: Status: 101 ()
05-17 15:53:48.573 7933-24121/com.newstar.xiaohushi_sq.debug D/de.tavendo.autobahn.WebSocketConnection: opening handshake received
05-17 15:53:48.578 7933-24121/com.newstar.xiaohushi_sq.debug D/c.t.c.c.c.a.AutobahnClientConnection: [Thread-2166] Connection opened to: ws://192.168.7.108/Thingworx/WS
05-17 15:53:48.588 7933-8076/com.newstar.xiaohushi_sq.debug I/System.out: Sending binary Message:
05-17 15:53:48.588 7933-8076/com.newstar.xiaohushi_sq.debug I/System.out: 01 14 00 00 00 0d ff ff ff ff ff ff ff ff 00 01 06 61 70 70 : ???????????????? app
05-17 15:53:48.588 7933-8076/com.newstar.xiaohushi_sq.debug I/System.out: 4b 65 79 24 65 64 64 38 38 35 32 62 2d 30 39 32 37 2d 34 34 :Key$edd8852b-0927-44
05-17 15:53:48.588 7933-8076/com.newstar.xiaohushi_sq.debug I/System.out: 32 65 2d 62 39 32 65 2d 63 66 63 62 66 35 36 34 31 64 62 36 :2e-b92e-cfcbf5641db6
05-17 15:53:48.588 7933-8076/com.newstar.xiaohushi_sq.debug I/System.out: Length = 60 bytes.
05-17 15:53:48.598 7933-24121/com.newstar.xiaohushi_sq.debug I/System.out: Receiving binary Message:
05-17 15:53:48.598 7933-24121/com.newstar.xiaohushi_sq.debug I/System.out: 01 40 00 00 00 0d 00 00 00 0b 00 00 00 0b 00 00 ff : @???????????? ?????? ?????
05-17 15:53:48.598 7933-24121/com.newstar.xiaohushi_sq.debug I/System.out: Length = 17 bytes.
05-17 15:53:48.608 7933-8076/com.newstar.xiaohushi_sq.debug I/c.t.c.c.e.ClientCommunicationEndpoint: [Client-EndpointMonitor-1] Authentication Request was SUCCESSFUL [tworx session id: 11, connection group id: 11]
05-17 15:53:48.608 7933-24121/com.newstar.xiaohushi_sq.debug D/c.t.c.c.e.DispatchingClientEndpoint: [Thread-2166] RESPONSE received [endpoint id: 0, duration: 42] ResponseMessage [requestId: 13, endpointId: 11, sessionId: 11, code: STATUS_SUCCESS, multipart: false, packet #: 0, total packets: 0]
05-17 15:53:48.608 7933-24121/com.newstar.xiaohushi_sq.debug D/de.tavendo.autobahn.WebSocketConnection: WebSockets Pong received
05-17 15:53:48.613 7933-8076/com.newstar.xiaohushi_sq.debug D/c.t.c.c.e.CommunicationEndpoint: [Client-EndpointMonitor-1] [Endpoint id: 0, connection id: 0-0] added Connection
05-17 15:53:48.618 7933-8076/com.newstar.xiaohushi_sq.debug I/c.t.c.c.e.ClientCommunicationEndpoint: [Client-EndpointMonitor-1] Successfully reconnected client endpoint [id: 0] : [active: 1, max: 1]
05-17 15:53:48.618 7933-8076/com.newstar.xiaohushi_sq.debug I/c.t.c.c.ConnectedThingClient: [Client-EndpointMonitor-1] Communications Endpoint Opened
05-17 15:53:48.623 7933-8076/com.newstar.xiaohushi_sq.debug I/c.t.c.c.e.m.ConnectivityMonitorTask: [Client-EndpointMonitor-1] Endpoint reconnected [name: EP_0, id: 0]
05-17 15:54:17.813 7933-24045/com.newstar.xiaohushi_sq.debug E/c.n.x.m.c.t.ThingworxCloud: [Thread-2165] GetBasicBackUpData出错。java.util.concurrent.TimeoutException: Timed out APIRequestMessage [requestId: 12, endpointId: 0, sessionId: 10, method: GET, entityName: *1222, characteristic: Properties, target: alarmList]
at com.thingworx.communications.common.endpoints.CommunicationEndpoint.sendRequest(CommunicationEndpoint.java:486) ~[na:0.0]
at com.thingworx.communications.common.endpoints.CommunicationEndpoint.sendRequest(CommunicationEndpoint.java:450) ~[na:0.0]
at com.thingworx.communications.client.BaseClient.sendRequest(BaseClient.java:969) ~[na:0.0]
at com.thingworx.communications.client.BaseClient.readProperty(BaseClient.java:856) ~[na:0.0]
at com.thingworx.communications.client.BaseClient.readProperty(BaseClient.java:820) ~[na:0.0]
at com.newstar.xiaohushi_sq.mod.cloud.thingworx.ThingworxCloud.restoreData(ThingworxCloud.java:380) ~[na:0.0]
at com.newstar.xiaohushi_sq.vmod.account.ActivationVm$2.run(ActivationVm.java:109) ~[na:0.0]
at java.lang.Thread.run(Thread.java:818) ~[na:0.0]
05-17 15:54:17.823 7933-24045/com.newstar.xiaohushi_sq.debug E/c.n.x.v.a.ActivationVm: [Thread-2165] 激活失败com.newstar.xiaohushi_sq.mod.cloud.CloudException: 恢复数据出错
at com.newstar.xiaohushi_sq.mod.cloud.thingworx.ThingworxCloud.restoreData(ThingworxCloud.java:394) ~[na:0.0]
at com.newstar.xiaohushi_sq.vmod.account.ActivationVm$2.run(ActivationVm.java:109) ~[na:0.0]
at java.lang.Thread.run(Thread.java:818) ~[na:0.0]
Caused by: java.util.concurrent.TimeoutException: Timed out APIRequestMessage [requestId: 12, endpointId: 0, sessionId: 10, method: GET, entityName: *1222, characteristic: Properties, target: alarmList]
at com.thingworx.communications.common.endpoints.CommunicationEndpoint.sendRequest(CommunicationEndpoint.java:486) ~[na:0.0]
at com.thingworx.communications.common.endpoints.CommunicationEndpoint.sendRequest(CommunicationEndpoint.java:450) ~[na:0.0]
at com.thingworx.communications.client.BaseClient.sendRequest(BaseClient.java:969) ~[na:0.0]
at com.thingworx.communications.client.BaseClient.readProperty(BaseClient.java:856) ~[na:0.0]
at com.thingworx.communications.client.BaseClient.readProperty(BaseClient.java:820) ~[na:0.0]
at com.newstar.xiaohushi_sq.mod.cloud.thingworx.ThingworxCloud.restoreData(ThingworxCloud.java:380) ~[na:0.0]
... 2 common frames omitted
Solved! Go to Solution.
Quick update: a Jira ASDK-32 has been filed for this issue also you can track the progress here with the public knowledge base article Attempting to send image which is encoded with base64 in an Infotable throws java.nio.BufferOverflowException in ThingWorx Android SDK 1.0.0
Hi Hailong, just to confirm did you test with smaller encoding from SDK? Did you still get the same error? Once you'll confirm I'll file a support case on this.
I am not test with smaller image, but if I remove those images from the InfoTable definition and rows, it works.
Hailong Liu sorry i missed to check on thing which version of Android SDK are you using?
Quick update: a Jira ASDK-32 has been filed for this issue also you can track the progress here with the public knowledge base article Attempting to send image which is encoded with base64 in an Infotable throws java.nio.BufferOverflowException in ThingWorx Android SDK 1.0.0
I use the latest Android SDK which was downloaded from Thingworx official website.