Nested Zip file filtering

Hello All 
I need to find a solution for scanning nested zip files recursively (a .exe in a zip file, in a zip file) on an exchange edge transport server. 
Our third party exchange antivirus/antispam solution, cannot scan in depth, only the first level of a zip 
Is there a way for exchange 2013/2007 to remove all executable (exe, scr, bat etc) from inside a zip, inside of a zip file?
Thanks

Hi,
Based on my knowledge, Exchange doesn't have built-in function to scan all executable (exe, scr, bat etc) from inside a zip and remove them. Your understanding will be appreciated.
Best regards,
Amy Wang
TechNet Community Support

Similar Messages

  • [Java 7] Zip file system does not handle nested zip files

    The ZIP FileSystem which is shipped as an extension with Java7 does not support nested ZIP files. I.e., you can open the outer zip file as a FileSystem, but if you try to open an inner zip as a FileSystem, you get this exception:
    java.nio.file.ProviderNotFoundException: Provider not found
         at java.nio.file.FileSystems.newFileSystem(FileSystems.java:403)Since the ZIP FileSystem is an extension, and not a part of the core JDK, I'm posting this here (and on Xueming's blog) in the hope that it will get resolved. It doesn't seem right to report it as a JDK bug.

    872883 wrote:
    The zip file system definitely allows zip entries to be read without extracting them first. And--based on reviewing the ZipFS source code that Oracle has included with the JDK--it doesn't appear to be silently extracting the data to a temporary file.you missed the point of what Peter Lawrey said. in order to create a ZipFS on a zip file, it must be a file in the first place (i.e. have random access). there is no way to do random access on an entry within an existing zip file, therefore in order to create a ZipFS on a nested zip file, you would first have to extract it to a file.

  • PayloadZipBean for nested zip files

    Hi,
    My scenario is file (zip) to file (unzip).
    Zip file contains one parent folder, parent folder has 6 nested folders and each folder contains 12 files. (all the 12 files are .jpg and .tif files). Few folders contains the same file as well, like A00001.tif in two folders.
    Using PayloadZipBean, I have extracted all the files in zip files, using PayloadSwapBean, I can able to swap the attachments and place it target folders. Using this method, I can be able to swap only one attachment. Also I should know the attachment name, to use it with PayloadSwapBean(Paramenters: swapKeyName and swapKeyValue)
    Is there any other method, that I can be able to extract all files in zipped folder and place it in the target folders in a single shot.
    I am planning to go for Custom Adapter Module development, but not sure how far this can be feasible. Any other idea is much appreciated.
    Thanks & regards
    UP

    Hi,
    >>>>Is there any other method, that I can be able to extract all files in zipped folder and place it in the target folders in a single shot.
    yes - unzip in OS command of the file adapter - this way you can unzip all files and push them via PI without the need for an adapter module,
    Regards,
    Michal Krawczyk

  • How to unzip a zip file within another zip file

    I've got code that successfully processes a file within a zip file.
    But now the zip file can also contain other zip files. How can I
    process a zip nested within a zip without actually extracting the
    files? It looks like I need a ZipFile object to be able to take
    advantage of the zip classes for reading zip entries. But the
    ZipFile methods want as an argument an actual file, as opposed
    to some object in memory. I can read the 'inner' zip file into a
    ZipInputStream object, but then how do I make that available for
    processing as a ZipFile? I've searched all over and cannot find
    anything anywhere that talks about working with nested zip files.
    Does anyone have any sample code that does this? Thanks!

    I have successfully done it.
    You cannot have the code - it is proprietary.
    However here are a few pointers:
    o Use ZipStreams rather than ZipFile.
    o ZipStream is just a filter on a stream, so you can have a zipstream open, read a ZipEntry, then ask for a substream for the stuff up to the next ZipEntry. Put a second ZipStream on that substream.
    o As I recall you have to watch out that your inner ZipStream does not do a close. (Everything will get closed.) Instead, there is another ZipStream method that will close without closing all the underlying streams.
    Hope this helps.

  • One Orchestration for Multiple ZIP file FTP Solution.

    Problem:
    Zip files are being generated from multiple locations on my network. I do not need to see any information in the Zip files. My goal is to pick up the files and transfer them to various external FTP servers.
    Solution:
    BizTalk picks up the zip file using a pass-through(file) receive port. I created an orchestration because I would like to send email based on failure/success. Inside the orchestration I am using the receive port information to assign the destination party.
    The send port then filters based on destination party and sends to external FTP server.
    This gives me the ability to have 1 orchestration for multiple transfers. I wanted it to be as generic as possible. 
    1 Orchestration - 10+ Receive Locations - 8+ External FTP Sites.
    Question:
    Has anyone done this before? What should I watch out for? Do I have a good solution to my problem?

    Yes ,
    This is totally a valid business scenario were you have multiple publisher of the message and there are different subscriber( FTP sites ) for your processed message .
    You can have multiple receive location inside the same receive port and also multiple send port for different message subscription .
    So ,Its all good from your side :)
    Thanks|
    Abhishek

  • Java.util.zip.ZipException: error in opening zip file Deploment Error

    Hi All,
    I am getting the fallowing Deployment exception while i am trying to deploy my webdynpro DC. Kindly help me if anybody know the solution for it.
    deployment aborted : file:/C:/DOCUME1/291123/LOCALS1/Temp/temp7081pg.comiprscipr~dc_intreg_process.ear
    Aborted: development component 'ipr/scipr/dc_intreg_process'/'pg.com'/'GGD_EPREGDEV_D'/'20101220152524'/'0':Caught exception during application deployment from SAP J2EE Engine's deploy service:java.rmi.RemoteException: Error while getting the internal libraries of application pg.com/iprsciprdc_intreg_process in operation update.. Reason: error in opening zip file; nested exception is:      java.util.zip.ZipException: error in opening zip file (message ID: com.sap.sdm.serverext.servertype.i
    Thanks,
    Mahesh Nuli.

    Hello Ram,
    It is saying that the library file is missing. Can you deploy pg.com/iprsciprdc_intreg_process  first and try to deploy this ear temp7081pg.comiprscipr~dc_intreg_process.ear.
    Regards
    Nizamudeen SM

  • Why is my Zip file being created with size of O KB?

    I have the following code
    public static int createZip (String directory)
                       throws IOException {
         File path = new File( directory );
         File outZip = new File("c:\\wip\\sams9dbExport.zip");
         boolean boo = outZip.createNewFile();
         FilenameFilter filter = new FilenameFilter() {
            public boolean accept(File dir, String name) {
                return name.endsWith(".xml");
        if ( outZip.exists() ) System.out.println("File exists");
         System.out.println(" Files and filters made");
         // These are the files to include in the ZIP file
         String[] fileList = path.list(filter);
        // Create a buffer for reading the files
        byte[] buf = new byte[1024];
        try {
            // Create the ZIP file
            String outFilename = "sams9dbExport.zip";
            ZipOutputStream out = new ZipOutputStream( new FileOutputStream( outFilename ) );
            // Compress the files
            for ( int i=0; i < fileList.length; i++ ) {
                FileInputStream in = new FileInputStream( "c:\\wip\\"+fileList[i] );
                 System.out.println( fileList[i] );
                // Add ZIP entry to output stream.
                out.putNextEntry( new ZipEntry( "c:\\wip\\"+fileList[i] ) );
                System.out.println("Added an entry");
                // Transfer bytes from the file to the ZIP file
                int len;
                while ( ( len = in.read( buf ) ) > 0 ) {
                    out.write( buf, 0, len );
                // Complete the entry
                out.closeEntry();
                in.close();
            // Complete the ZIP file
             out.close();
        } catch (IOException e) {
             System.out.println( e.toString() );
             return 0;
        return 1;
    }And I get the following output
    SQL> @ziptest
    File exists
    Files and filters made
    AH_QUERY.xml
    Added an entry
    myclob.xml
    Added an entry
    myclob1.xml
    Added an entry
    myclob2.xml
    Added an entry
    PERSONNEL.xml
    Added an entry
    PERS_ALG.xml
    Added an entry
    sampledoc.xml
    Added an entry
    ut_ah_query1.xml
    Added an entry
    ut_provider.xml
    Added an entry
    PL/SQL procedure successfully completed.
    SQL>
    But my file is created empty. I previously added a println statement in the while loop to see if it was reading and writing bytes and it was.
    Any ideas?

    I have the following code
    public static int createZip (String directory)
    throws IOException {
    File path = new File( directory );
    File outZip = new
    = new File("c:\\wip\\sams9dbExport.zip");
    boolean boo = outZip.createNewFile();So these two lines will create sams9dbExport.zip with size 0 bytes, if file didn't exist.
    No need to do that....
    try {
    // Create the ZIP file
    String outFilename = "sams9dbExport.zip";
    ZipOutputStream out = new ZipOutputStream(
    tStream( new FileOutputStream( outFilename ) );Probably you are looking a wrong "sams9dbExport.zip" -file. Your application will create two "sams9dbExport.zip"-files, one into wip-folder with 0 bytes, and other into default directory.
    >
    But my file is created empty. I previously added a
    println statement in the while loop to see if it was
    reading and writing bytes and it was.
    Any ideas?

  • JBoss Shuts Down while reading a Corrupt Zip File

    Hi,
    I have a strange problem, where the jboss crashes when i read a corrupt file.
    Code is like this :
    ZipFile zipfile = null;
    Enumeration e = null;
    try
    zipfile = new ZipFile(zipFile);
    e = zipfile.entries();
    catch(Exception e1) {
    e1.printStackTrace();
    while(e.hasMoreElements()) {
    ZipEntry entry = (ZipEntry) e.nextElement();
    JBoss Error Description :
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x77FCD91F
    Function=RtlDestroyHeap+0x2DB
    Library=C:\WINNT\system32\ntdll.dll
    Current Java thread:
         at java.util.zip.ZipFile.getNextEntry(Native Method)
         at java.util.zip.ZipFile.access$400(Unknown Source)
         at java.util.zip.ZipFile$2.nextElement(Unknown Source)
         - locked <0x1122c828> (a java.util.zip.ZipFile)
         at com.intruvert.alertarchival.process.CoreRestore.extractDescriptionXML(Unknown Source)
         at com.intruvert.alertarchival.process.ArchivalManager.getArchivalZipFileInfo(Unknown Source)
         - locked <0x330cf478> (a com.intruvert.alertarchival.process.ArchivalManager)
         at com.intruvert.mgmt.alertarchival.AlertArchivalBean.getArchivalZipFileInfo(AlertArchivalBean.java:235)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
         at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
         at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
         at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
         at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315)
         at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
         at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:111)
         at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
         at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
         at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
         at org.jboss.ejb.Container.invoke(Container.java:709)
         at sun.reflect.GeneratedMethodAccessor103.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
         at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:97)
         at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:90)
         at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
         at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
         at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:100)
         at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
         at $Proxy236.getArchivalZipFileInfo(Unknown Source)
         at com.intruvert.ui.util.busobj.DBManager.getArchividFile(DBManager.java:397)
         at com.intruvert.ui.util.busobj.DBManager.getFileTransferInfo(DBManager.java:274)
         - locked <0x10ee9ed8> (a com.intruvert.ui.util.busobj.DBManager)
         at com.intruvert.ui.util.servlet.CArchivalUploadServlet.doUpload(CArchivalUploadServlet.java:157)
         - locked <0x15789860> (a com.intruvert.ui.util.servlet.CArchivalUploadServlet)
         at com.intruvert.ui.util.servlet.CArchivalUploadServlet.doPost(CArchivalUploadServlet.java:58)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:158)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Unknown Source)
    Dynamic libraries:
    0x00400000 - 0x0040B000      C:\CVS_TRIMBLE\ems\Install\jre\bin\java.exe
    0x77F80000 - 0x77FFD000      C:\WINNT\system32\ntdll.dll
    0x7C2D0000 - 0x7C332000      C:\WINNT\system32\ADVAPI32.dll
    0x7C570000 - 0x7C623000      C:\WINNT\system32\KERNEL32.DLL
    0x77D30000 - 0x77DA1000      C:\WINNT\system32\RPCRT4.DLL
    0x78000000 - 0x78045000      C:\WINNT\system32\MSVCRT.dll
    0x75030000 - 0x75044000      C:\WINNT\system32\WS2_32.DLL
    0x75020000 - 0x75028000      C:\WINNT\system32\WS2HELP.DLL
    0x08000000 - 0x08138000      C:\CVS_TRIMBLE\ems\Install\jre\bin\client\jvm.dll
    0x77E10000 - 0x77E6F000      C:\WINNT\system32\USER32.dll
    0x77F40000 - 0x77F7B000      C:\WINNT\system32\GDI32.dll
    0x77570000 - 0x775A0000      C:\WINNT\system32\WINMM.dll
    0x10000000 - 0x10007000      C:\CVS_TRIMBLE\ems\Install\jre\bin\hpi.dll
    0x007C0000 - 0x007CE000      C:\CVS_TRIMBLE\ems\Install\jre\bin\verify.dll
    0x007D0000 - 0x007E9000      C:\CVS_TRIMBLE\ems\Install\jre\bin\java.dll
    0x007F0000 - 0x007FE000      C:\CVS_TRIMBLE\ems\Install\jre\bin\zip.dll
    0x44420000 - 0x4443C000      C:\CVS_TRIMBLE\ems\Install\jre\bin\jdwp.dll
    0x48440000 - 0x48445000      C:\CVS_TRIMBLE\ems\Install\jre\bin\dt_socket.dll
    0x74FD0000 - 0x74FEE000      C:\WINNT\system32\msafd.dll
    0x75010000 - 0x75017000      C:\WINNT\System32\wshtcpip.dll
    0x487D0000 - 0x487DF000      C:\CVS_TRIMBLE\ems\Install\jre\bin\net.dll
    0x782C0000 - 0x782CC000      C:\WINNT\System32\rnr20.dll
    0x77980000 - 0x779A4000      C:\WINNT\system32\DNSAPI.DLL
    0x75050000 - 0x75058000      C:\WINNT\system32\WSOCK32.DLL
    0x77340000 - 0x77353000      C:\WINNT\system32\iphlpapi.dll
    0x77520000 - 0x77525000      C:\WINNT\system32\ICMP.DLL
    0x77320000 - 0x77337000      C:\WINNT\system32\MPRAPI.DLL
    0x75150000 - 0x7515F000      C:\WINNT\system32\SAMLIB.DLL
    0x75170000 - 0x751BF000      C:\WINNT\system32\NETAPI32.DLL
    0x7C340000 - 0x7C34F000      C:\WINNT\system32\Secur32.dll
    0x77BF0000 - 0x77C01000      C:\WINNT\system32\NTDSAPI.dll
    0x77950000 - 0x7797A000      C:\WINNT\system32\WLDAP32.DLL
    0x751C0000 - 0x751C6000      C:\WINNT\system32\NETRAP.dll
    0x77A50000 - 0x77B3F000      C:\WINNT\system32\OLE32.DLL
    0x779B0000 - 0x77A4B000      C:\WINNT\system32\OLEAUT32.DLL
    0x773B0000 - 0x773DF000      C:\WINNT\system32\ACTIVEDS.DLL
    0x77380000 - 0x773A3000      C:\WINNT\system32\ADSLDPC.DLL
    0x77830000 - 0x7783E000      C:\WINNT\system32\RTUTILS.DLL
    0x77880000 - 0x7790E000      C:\WINNT\system32\SETUPAPI.DLL
    0x7C0F0000 - 0x7C151000      C:\WINNT\system32\USERENV.DLL
    0x774E0000 - 0x77513000      C:\WINNT\system32\RASAPI32.DLL
    0x774C0000 - 0x774D1000      C:\WINNT\system32\RASMAN.DLL
    0x77530000 - 0x77552000      C:\WINNT\system32\TAPI32.DLL
    0x77B50000 - 0x77BD9000      C:\WINNT\system32\COMCTL32.DLL
    0x77C70000 - 0x77CB9000      C:\WINNT\system32\SHLWAPI.DLL
    0x77360000 - 0x77379000      C:\WINNT\system32\DHCPCSVC.DLL
    0x777E0000 - 0x777E8000      C:\WINNT\System32\winrnr.dll
    0x777F0000 - 0x777F5000      C:\WINNT\system32\rasadhlp.dll
    0x49330000 - 0x49335000      C:\CVS_TRIMBLE\ems\Install\jre\bin\rmi.dll
    0x49E80000 - 0x49E88000      C:\CVS_TRIMBLE\ems\Install\jre\bin\nio.dll
    0x4A550000 - 0x4A556000      C:\CVS_TRIMBLE\ems\Install\jre\bin\ioser12.dll
    0x4BEE0000 - 0x4BFF2000      C:\CVS_TRIMBLE\ems\Install\jre\bin\awt.dll
    0x77800000 - 0x7781E000      C:\WINNT\system32\WINSPOOL.DRV
    0x76620000 - 0x76630000      C:\WINNT\system32\MPR.DLL
    0x75E60000 - 0x75E7A000      C:\WINNT\system32\IMM32.dll
    0x7CA00000 - 0x7CA23000      C:\WINNT\system32\rsaenh.dll
    0x7C740000 - 0x7C7C7000      C:\WINNT\system32\CRYPT32.dll
    0x77430000 - 0x77440000      C:\WINNT\system32\MSASN1.DLL
    0x77920000 - 0x77943000      C:\WINNT\system32\imagehlp.dll
    0x72A00000 - 0x72A2D000      C:\WINNT\system32\DBGHELP.dll
    0x690A0000 - 0x690AB000      C:\WINNT\system32\PSAPI.DLL
    Heap at VM Abort:
    Heap
    def new generation total 54464K, used 24954K [0x10010000, 0x13b20000, 0x13b20000)
    eden space 48448K, 39% used [0x10010000, 0x1128eb08, 0x12f60000)
    from space 6016K, 100% used [0x13540000, 0x13b20000, 0x13b20000)
    to space 6016K, 0% used [0x12f60000, 0x12f60000, 0x13540000)
    tenured generation total 725952K, used 562288K [0x13b20000, 0x40010000, 0x40010000)
    the space 725952K, 77% used [0x13b20000, 0x3603c398, 0x3603c400, 0x40010000)
    compacting perm gen total 39424K, used 39287K [0x40010000, 0x42690000, 0x44010000)
    the space 39424K, 99% used [0x40010000, 0x4266de88, 0x4266e000, 0x42690000)
    Local Time = Tue Jun 21 10:27:43 2005
    Elapsed Time = 198
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.4.2_08-b03 mixed mode)
    Could you please hep me out....
    Thanks,
    ~ Ajay Sandesh

    Simply remove the corrupt zip file, and replace it with the valid copy of the zip file.
    regards,
    Owen

  • Zip files seen as 1x1 gif image

    When I try to download zip files on my G4 laptop, a new window opens with the title <filename>.zip 1x1 pixel.gif. When using "save as" in the Safari menu, a small gif file is saved, not a zip file. This happens when using Safari 2.0.4, Safari 3.0.3, or Firefox. I've used "reset Safari" without results. When trying to download the same zip files using Safari on an iMac on the same home network, it downloads flawlessly. rar and dmg files download without a problem. I could use a hand trying to figure this one out. Thanks.

    Hi,
    I forge the name of the product, but I think this is caused by an internet security product (NetBarrier?) being a little over-zealous in the filtering that it performs. Assuming you have such a product, check it's settings.
    Hope that ends up helping you out

  • Unable to unarchive ZIP file Error - 1

    Every time I try to archive a ZIP file, i get the message "Unable to archive (Error - 1)" How can I fix this?

    I have to agree, the most likely scenario is a bad file. As I mentioned earlier, I don't think there are any Mac utilities for attempting a repair. "Repair" is somewhat vague. If a file is bad it is missing data, and likely this data is critical to the running of the file. If you could repair this file (say, on a PC) you still might end up with a corrupt movie file which might refuse to play. Even if the movie plays it might end early or something.
    Could this possibly be part of a multi-part archive set? The file extension is totally wrong for that but the "05" suggest more than one of something.
    I have also read there are some obscure utilities that do flavors of zip that can't be opened on Macs.

  • I can't update Fiefox since update 10.o1 or 10.02. Every time I try to I get the same message, "7 - ZIP File is missing" I don't know how or where to correct this problem. I'd really appreciate any help that corrects this problem. Thanks sovery much,

    Missing "7-Zip File"
    Hello,
    I haven't been able to update Firefox since 10.01 or 10.02 because every time I try I get the same message the "7-ZIP File" is missing. Then the update fails. I've submitted this problem to Mozilla Firefox and, got an immediate reply of " they are researching your problem".
    Well, you can tell how long that has been. Is there anything I can do, or any where I can go to get the file I need?
    Any constructive help would be very much appreciated! I'm not sure If I'll ever be able to find where this is located. But I do appreciate help just the same.

    It is possible that your anti-virus software is corrupting the downloaded files or otherwise interfering with downloading files by Firefox.<br />
    Disable your anti-virus software temporarily to see if that makes installing work.
    Download a fresh Firefox copy and save the file to the desktop.
    *Firefox 11.0.x: http://www.mozilla.org/en-US/firefox/all.html
    Uninstall your current Firefox version, if possible.
    *Do NOT remove personal data when you uninstall the current version or you lose your bookmarks and other data because all profile folders will be removed.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    *It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    *http://kb.mozillazine.org/Uninstalling_Firefox
    Your bookmarks and other profile data are stored elsewhere in the Firefox Profile Folder and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *http://kb.mozillazine.org/Profile_backup
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • Error reading zip file in Java 6

    We have a bespoke installer program that fails, intermittently, in Java 6 on Windows. After installing some files, it then fails with a stack trace like this:
    java.util.zip.ZipException: error reading zip file
         at java.util.zip.ZipFile.read(Native Method)
         at java.util.zip.ZipFile.access$1200(ZipFile.java:29)
         at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:447)
         at java.util.zip.ZipFile$1.fill(ZipFile.java:230)
         at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:141)
         at java.io.FilterInputStream.read(FilterInputStream.java:90)
         at com.XXXX.trent.installer.Installer.writeStreamToFile(Unknown Source)
         at com.XXXX.trent.installer.Installer.installFile(Unknown Source)
         at com.XXXX.trent.installer.PatchFileInstaller.installFile(Unknown Source)
         at com.XXXX.trent.installer.PatchFileInstaller.installFiles(Unknown Source)
         at com.XXXX.trent.installer.UpgradeInstaller$TpfAction.run(Unknown Source)
         at com.XXXX.trent.installer.UpgradeInstaller.runActions(Unknown Source)
         at com.XXXX.trent.installer.UpgradeInstaller.install(Unknown Source)
         at com.XXXX.trent.installer.TrentInstall$SoftwareInstallStage.install(Unknown Source)
         at com.XXXX.trent.installer.TrentInstall$UpgradeInstallWorker.install(Unknown Source)
         at com.XXXX.trent.installer.PatchInstall$InstallWorker.construct(Unknown Source)
         at com.XXXX.trent.utils.SwingWorker$2.run(Unknown Source)
         at java.lang.Thread.run(Thread.java:619)The same code works in Java 5 on the same environments that it now fails in Java 6 (1.6.0_16).
    Any ideas?
    Thanks.

    gimbal2 wrote:
    it is not weird, it is a bug in the application. Don't let the upgrade from Java 5 to Java 6 make you believe otherwise.It's a singularly bad exception message though. I would have thought that something from java.util might be a bit more explicit about what the problem is.
    Winston

  • Error reading zip file containing an excel file

    Hi all,
    Using servlets I am able to zip an excel file using java.util.zip package. The excel file is created using POI API.
    While I save and extract the zip file on my machine and then open the file in MS Excel. Excel pops a message saying "MS Office Excel has encountered a problem and need to close" and it gives me an option to "Recover my work and restart MS Office Excel". I select the option and then MS Excel does a document recovery and I am able to view my data. I get an excel repair log file saying as follows
    "Microsoft Office Excel File Repair Log
    Errors were detected in file 'C:\Documents and Settings\JohnDoe\Desktop\excel\test.xls'
    The following is a list of repairs:
    Damage to the file was so extensive that repairs were not possible. Excel attempted to recover your formulas and values, but some data may have been lost or corrupted.
    I have attached my servlet code down below I suspect there is a problem with PrintWriter to output or do I need to use OutputStream to write excel data.
    Below is my servlet code:
    import java.io.*;
    import javax.servlet.*;
    import org.apache.log4j.Logger;
    import java.util.*;
    import java.util.zip.*;
    import java.net.*;
    import org.apache.poi.hssf.usermodel.*;
    import org.apache.poi.hssf.record.*;
    import org.apache.poi.hssf.util.*;
    public class ZipServlet extends HttpServlet {
         * @see javax.servlet.http.HttpServlet#doGet(javax.servlet.http.HttpServletRequest,
         * javax.servlet.http.HttpServletResponse)
         public void doGet(HttpServletRequest request, HttpServletResponse response)
              throws ServletException, IOException {
              makeZip(request, response, "GET");
         * @see javax.servlet.http.HttpServlet#doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         protected void doPost(HttpServletRequest request, HttpServletResponse response)
                   throws ServletException, IOException {
                   makeZip(request, response, "POST");
         public void makeZip(HttpServletRequest request, HttpServletResponse response, String methodGetPost) {
              Logger logger = Logger.getLogger(ZipServlet.class);
              try
                   int id=1;
                   ServletContext sc = getServletContext();
         HttpSession session = request.getSession();          
                   ConnectionPoolManager cpm = (ConnectionPoolManager)sc.getAttribute("CONNECTION_POOL_MANAGER");
                   ConnectionPool cp = cpm.getConnectionPool(id);
              createTestExcelZip(request,response,methodGetPost,session);
              } catch (Exception e2) {
         public void createTestExcelZip(HttpServletRequest request, HttpServletResponse response,
                   String methodGetPost,HttpSession session
                   )throws ServletException, IOException
              Logger logger = Logger.getLogger(ZipServlet.class);
              try
              {      //Create an Excel Workbook and placing value "Test" in the first cell
                   HSSFWorkbook wb = new HSSFWorkbook();
                   HSSFSheet sheet = wb.createSheet("new sheet");
                   HSSFCell cell=null;
                   HSSFRow row = sheet.createRow((short) 0);
                   short column = 0;
                   cell = row.createCell(column);
                   cell.setCellValue(new HSSFRichTextString("Test"));
                   HSSFCellStyle fontStyle = wb.createCellStyle();
              HSSFFont f = wb.createFont();
              f.setFontHeight((short) 200);
              f.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
              fontStyle.setFont(f);
              cell.setCellStyle(fontStyle);
              response.setContentType("application/zip");
                   response.setHeader("Content-Disposition","attachment; filename=zipExcelRecordFiles.zip;");
                   int BUFFER = 2048;
                   byte buf[]=new byte[300000];
                   ByteArrayOutputStream baos = new ByteArrayOutputStream();
                   ZipOutputStream zos = new ZipOutputStream( baos );
                   ByteArrayInputStream is = null;
                   BufferedInputStream origin = null;
                   byte[] b = null;
                   String fileName = null;
                   b = wb.getBytes();
                   fileName = "testExcelRecords.xls";
                   try
                   is = new ByteArrayInputStream(b);
                   origin = new BufferedInputStream(is, BUFFER);
                   zos.putNextEntry(new ZipEntry(fileName)); // Add ZIP entry to output stream.
              int count;
              while((count = origin.read(buf, 0, BUFFER)) != -1)
              zos.write(buf, 0, count);
              zos.closeEntry(); // Complete the entry
                   is.close();
                   }catch(Exception e)
                        logger.error(e);
                   zos.close();
              PrintWriter pr = response.getWriter();
                   pr.write(baos.toString("ISO-8859-1"));
                   pr.close();
              catch(Exception e)
              logger.error(e);     
         * @see javax.servlet.GenericServlet#destroy()
         public void destroy() {
    Any help would be appreciated.
    Regards
    jdcunha

    Jdcunha,
    I am new to the field but encountered the same problem and recently found a solution. Hope this helps.
    For my project I wanted to create individual Excel 2003 workbooks for each file I created. Excel would give me the same error it gave you when I used the same HSSFWorkbook object. I tried creating a new Workbook object each time, but ran into the same issue.
    I ended up fixing the error by creating a new instance of my write-to-excel class each time I wanted to create a new workbook, instead of just recreating a new HSSFWorkbook object. It works perfectly and the Excel errors don't show. It may also be important to note I used OutputStream, I did not try it with printwriter.

  • How to exreact multiple pdf files from a zip files from application server to presentation server

    Hello exprts,
    I am passing one pdf file and one text file to zip file in apllication server through my custom program and then downloading it using standard function module to my desktop. its working fine. Then I added  another pdf file to my zip file. But only single pdf file is getting download . So can you please help me regardiong this issue? 

    Dear Experts ,
    I finded out the way to extrcat pdf files in presentation server. But now my problem is that I am not able to add multiple pdf files in a zip file. When I am adding new pdf file then older one is not coming in read data set. So please kindly tell me how can I add multiple pdf file in my zip file and again I can get all the pdf files from here.

  • Problem on windows xp with downloaded zip file

    Hi,
    I have written a JSP to download file which is as follows
    try
    response.setContentType("application/download");
    response.setHeader("Content-Disposition","attachment;filename=<FileName>");
    int iRead;
    FileInputStream stream = null;
    try
    File f = new File(<FilePath>);
    stream = new FileInputStream(f);
    while ((iRead = stream.read()) != -1)
    out.write(iRead);
    out.flush();
    finally
    if (stream != null)
    stream.close();
    catch(Exception e)
    //out.println("Exception : "+e);
    After downloading zip file, could not extract files on windows XP by using any tool or built-in extractor i.e. compressed(zipped)folders (error: compressed folder invalid or corrupted).
    But this works on win2k or win98
    How can i work with it or can anyone tell me a solution to handle such a problem.
    Thanks in advance.
    Rajesh
    [email protected]

    This could be a problem with the built-in ZIP program in Win XP - it's possible that the ZIP you are downloading (uploading?) is simply incompatible with the XP program. In Win 98 & 2000, you would have to use your own ZIP program, e.g. Winzip, and that can handle more formats that the XP program.
    Try installing the same ZIP program that you have on w98/2k on your XP machine, and see if you can open the uploaded file using it.

Maybe you are looking for