在 Linux 中使用 java.util.zip 压缩 SWF 时出现问题
我创建了一个 servlet,它可以更改 SWF 文件的二进制文件并将其输出给用户。默认情况下,SWF 由 ZLIB 压缩。然后我膨胀,更改二进制文件,收缩并输出结果。
一切都在 Windows Server 2008(也在 2003 年)上运行。目前,我们需要将服务器更改为 Linux,然后,这个 servlet 会以某种方式输出损坏的 SWF 文件...可能是什么问题?更让我感兴趣的是 Windows 和 Linux servlet 版本之间没有区别。
java.util.zip 包是否有任何未记录的 Linux 特定行为?
我的 Windows Server 是(servlet 工作的地方):
- Windows Server 2008 (6.0 - x86)
- Apache 2.2.11
- Tomcat 6.0.16.0 Java
- JDK 1.6.0_12-b04
我的 CentOS 服务器是(其中 servlet 不起作用)
- CentOS 5.4 (2.6.18-164.15.1.el5 - i386)
- Apache 2.2.3
- Tomcat 6.0.16.0
- Java JDK 1.6.0_12-b04
任何线索将不胜感激! 干杯, CaioToOn!
I've created a servlet that changes the binaries of a SWF file and output it to the user. The SWF is compressed by ZLIB by default. Then I inflate, change the binaries, deflate and output the result.
Everything was running right on a Windows Server 2008 (also in 2003). Currently, we need change the server to Linux, and then, this servlet is somehow outputing a corrupted SWF File... what could be the problem? What intrigues me more is that there is no difference between the Windows and Linux servlet versions.
Is there any undocumented linux specific behaviour for the java.util.zip package?
My Windows Server is (where the servlet is working):
- Windows Server 2008 (6.0 - x86)
- Apache 2.2.11
- Tomcat 6.0.16.0 Java
- JDK 1.6.0_12-b04
My CentOS Server is (where te servlet doesn't work)
- CentOS 5.4 (2.6.18-164.15.1.el5 - i386)
- Apache 2.2.3
- Tomcat 6.0.16.0
- Java JDK 1.6.0_12-b04
Any lead would be appreciated!
Cheers,
CaioToOn!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果没有看到一些代码和/或 SWF 文件如何被“损坏”的示例,就很难说更多。直接回答你的问题,我想不出两个平台上的zip库在原理上有什么区别。但需要考虑一些事情:
It's difficult to say more without seeing some code and/or examples of how your SWF files are being "corrupted". To answer your question directly, I can't think of any difference in principle between the zip library on the two platforms. But some things to think about: