S summitcn New Member Licensed User Longtime User May 17, 2011 #1 Hello all, I am new to b4a and have a current project in mind that will allow an android device to communicate directly with a database server developed by our company. The data stream is compressed using zlib, so I am wondering is there a zlib available on android, and how would I access these 2 functions? Code: compress(&lsA, strlen(lsa), &rsSI, strlen(rsSI)); uncompress(&lsA, strlen(lsA), &clsa, strlen(lsa)); I would need to use these functions from within b4a in order to build packets to send to the server and decompress packets received from it. Any advice or help would be greatly appreciated! -Scott
Hello all, I am new to b4a and have a current project in mind that will allow an android device to communicate directly with a database server developed by our company. The data stream is compressed using zlib, so I am wondering is there a zlib available on android, and how would I access these 2 functions? Code: compress(&lsA, strlen(lsa), &rsSI, strlen(rsSI)); uncompress(&lsA, strlen(lsA), &clsa, strlen(lsa)); I would need to use these functions from within b4a in order to build packets to send to the server and decompress packets received from it. Any advice or help would be greatly appreciated! -Scott
Erel B4X founder Staff member Licensed User Longtime User May 17, 2011 #2 See this tutorial for an example of communicating with a server: http://www.b4x.com/forum/basic4andr...-connect-android-mysql-database-tutorial.html zlib is not yet supported. I believe that support for GZip and zlib will be added soon. Upvote 0
See this tutorial for an example of communicating with a server: http://www.b4x.com/forum/basic4andr...-connect-android-mysql-database-tutorial.html zlib is not yet supported. I believe that support for GZip and zlib will be added soon.
S summitcn New Member Licensed User Longtime User May 17, 2011 #3 Thank you, I will keep an eye out for zlib support. I already took a look at the network routines, and they shouldn't be a problem at all. Thanks again! -Scott Upvote 0
Thank you, I will keep an eye out for zlib support. I already took a look at the network routines, and they shouldn't be a problem at all. Thanks again! -Scott