In my current application I have this use case where I have to send large amount of data ( < 1 MB) from device to agent. Since agent and device communication is limited by 60 KB limit. I am sending this data in multiple parts of 40 KB each. But when I try to merge this data in agent I seem to get following error
ERROR: io error in blob.writeblob(blob)
Following is the log line for reference which I am printing.
buffer is a blob in which I write the result of device data requests
server.log("current = " + current + " total = " + total + " current_buffer_size = " + buffer.len() + " Free mem = " + imp.getmemoryfree())
2015-02-26 21:14:19 UTC+5.5 [Agent] current = 51 total = 77 current_buffer_size= 10240 cur size = 522240 Free mem = 424023
2015-02-26 21:14:19 UTC+5.5 [Agent] ERROR: io error in blob.writeblob(blob)