[英]Problem when compressing SWF in Linux with java.util.zip
I've created a servlet that changes the binaries of a SWF file and output it to the user. 我创建了一个Servlet,它可以更改SWF文件的二进制文件并将其输出给用户。 The SWF is compressed by ZLIB by default.
默认情况下,ZLIB压缩SWF。 Then I inflate, change the binaries, deflate and output the result.
然后,我充气,更改二进制文件,放气并输出结果。
Everything was running right on a Windows Server 2008 (also in 2003). 一切都在Windows Server 2008上运行(同样在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?
当前,我们需要将服务器更改为Linux,然后,该servlet以某种方式输出损坏的SWF文件……可能是什么问题? What intrigues me more is that there is no difference between the Windows and Linux servlet versions.
更令我着迷的是Windows和Linux servlet版本之间没有区别。
Is there any undocumented linux specific behaviour for the java.util.zip package? java.util.zip软件包是否存在任何未公开的Linux特定行为?
My Windows Server is (where the servlet is working): 我的Windows Server(servlet在其中运行):
My CentOS Server is (where te servlet doesn't work) 我的CentOS服务器在其中(servlet无法正常工作)
Any lead would be appreciated! 任何线索将不胜感激! Cheers, CaioToOn!
干杯, CaioToOn!
It's difficult to say more without seeing some code and/or examples of how your SWF files are being "corrupted". 如果不看一些代码和/或SWF文件如何“损坏”的示例,很难说更多。 To answer your question directly, I can't think of any difference in principle between the zip library on the two platforms.
要直接回答您的问题,我认为这两个平台上的zip库在原理上没有任何区别。 But some things to think about:
但是要考虑一些事情:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.