开发者

Unzip files and/or streams in rhomobile

开发者 https://www.devze.com 2023-01-17 08:45 出处:网络
How do I decompress a compressed file in a rhomobile application? I saw that the zlib extension is unavailable in rhodes, because it needs a ruby port. Ruby uses the \"zlib.c\" or \"zlib.h\" source fi

How do I decompress a compressed file in a rhomobile application?

I saw that the zlib extension is unavailable in rhodes, because it needs a ruby port. Ruby uses the "zlib.c" or "zlib.h" source files and not a portable zlib.

When running the rhodes application, in a line with the source:

require 'zlib'

it raises the error:

no such file 开发者_开发百科to load -- zlib

Anyone has any idea?

Thanks in advance?


See the documentation on adding libaries to your Rhodes app: http://wiki.rhomobile.com/index.php/RhodesExtensions#Adding_Libraries_to_Your_Rhodes_Application

I don't know if zlib will work or not (actually would be curious what you find out). If you have more questions I suggest the Rhomobile google group.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号