解压缩rhomobile中的文件和/或流

时间:2010-09-22 17:56:16

标签: mobile zip gzip rhomobile rhodes

如何在rhomobile应用程序中解压缩压缩文件? 我看到zlib扩展在rhodes中不可用,因为它需要一个ruby端口。 Ruby使用“zlib.c”或“zlib.h”源文件,而不是可移植的zlib。

运行rhodes应用程序时,在源代码行中:

require 'zlib'

它引发了错误:

no such file to load -- zlib

任何人都有任何想法?

提前致谢?

1 个答案:

答案 0 :(得分:1)

请参阅有关向Rhodes应用添加库的文档:http://wiki.rhomobile.com/index.php/RhodesExtensions#Adding_Libraries_to_Your_Rhodes_Application

我不知道zlib是否会起作用(实际上你会发现它很奇怪)。如果您有更多问题,我建议Rhomobile谷歌小组。

相关问题