CFZIP can't unzip FTP'd file

When I try to unzip a zip file that was FTP'd to my server I
get an error:
Ensure that the file is a valid zip file and it is
accessible. Cause : java.util.zip.ZipException: error in opening
zip file
I can open the zip file through windows with no issue so this
has to do with what CF uses to open the file. I also extracted the
files in the zip file and then created a new zip file on my own and
CF can unzip that file fine as well.
Does ftp'ing a file cause some kind of change with the file
that would cause the exception?

jsg1000 wrote:
> When I try to unzip a zip file that was FTP'd to my
server I get an error:
>
> Ensure that the file is a valid zip file and it is
accessible. Cause :
> java.util.zip.ZipException: error in opening zip file
>
> I can open the zip file through windows with no issue
Did you open the exact file that was FTP'd to your server or
the initial
file ? FTP files can be transferred in 2 modes: ascii and
binary there
is a possibility that the files was transferred in ascii and
thus corrupted.
> Does ftp'ing a file cause some kind of change with the
file that would cause
> the exception?
It might be. Read about the ascii/binary mode for a ftp
transfer for
more info.
Mack

Similar Messages

  • Can I unzip the .ipa file and edit the application.xml file

    I want to modify the below info to also have an additional string value of 2, which somewhere along the line tells something somewhere that the app can run on the ipad. Is there some info in the compiled application that will error out if I modify this document?
    <InfoAdditions>
    - <![CDATA[ <key>UIDeviceFamily</key><array><string>1</string></array> ]]>
    </InfoAdditions>
    into this
    <InfoAdditions>
    - <![CDATA[ <key>UIDeviceFamily</key><array><string>1</string><string>2</string></array> ]]>
    </InfoAdditions>

    you can change the file extension to zip, unzip it, find the application.xml file in one of the subdirectories, edit it, rezip the files, change the file extension to ipa and install.

  • Can not unzip the zip file of AIR 3.4 beta2 sdk for windows

    http://labsdownload.adobe.com/pub/labs/flashplatformruntimes/air3-4/air3-4_p2_sdk_win_0807 12.zip
    the file can not be unzip.

    Could you please try again, it's fixed now, Apologies for the inconvenience.
    -Thanks
    Pahup

  • Unzip a zipped file?

    How can I unzip a zipped file with java ?

    I presume you've read the API of [url http://java.sun.com/j2se/1.4.1/docs/api/java/util/zip/ZipFile.html]ZipFile?

  • Can't unzip trial DW [subject edited by moderator]

    I have Dreamweaver on trial for 30 days, I have to teach web design to my students want to learn programme, testing before buying licence for 5 PC I can't unzip the the files as suggest by the on line learning or Adobe Classroom in a book, can't use support.
    This my question can anyone help?

    Hi thanks for interest
    Usually I use the extract facility in Windows 7, I have Window 8.1 but have not got to grips with it yet, so yesterday I downloaded WinZip free trial and opened the file.  I have just finished a degree in Training and Education and my mind is a bit Zonked!!! So I as not thinking straight.
    I am teaching piloting FETAC Level 4 in Web design, it’s a new module for us to unemployed adults in the West of Ireland.  Training providers have suggested Dreamweaver  so I have to learn it.  It is a long time since I had anything to do with HTML code and then pretty basic, but reading up I think this is pretty basic stuff, not sure though as this is a pilot scheme.  I used Front Page before to produce some sites, looked at web expression but just starting off.  I know I can use notepad but this is the programme I being funded for.  I need to make it use friendly for people who don’t really want to do the subject as well as those who do, as it will be mandatory on my course.
    Any ideas will be gratefully received by those who know much more than I do.
    Thanks Herbert

  • FTP a file to given mailbox loacted at ip-address and port number

    I need technical suggestion on the following.
    Actually I got struck up with a technical issue related to FTP a file to UNIX mailbox through ABAP.
    We have tried with FM: SXPG_CALL_SYSTEM and FTP_CONNECT, which all works purely based on IP, USER ID and PWD.
    But we have an extra PORT NUMBER, which any of this FM doesnu2019t take up.
    Can you please suggest me any other FM that I can use to FTP a file to specified IP with Port Number along with User id and PWD.
    Else are we supposed to go for a separate script for this purpose?
    As i have no clue on UNIX, if i go for a script than what would be the reuirement for this script and where to place them and how to call them in to my ABAP?
    Timely help would be appreciable.
    Thanks in advance
    Edited by: yamuna pillai on Nov 11, 2008 8:37 AM

    Hi Yamuna,
    Can you let us know hw u did this..because we are facing the same kind of issue.
    Thanks
    Gayathri

  • How to unzip a pdf file

    How can I unzip a pdf file I have down loaded?

    If it were simply a .pdf then double clicking would open Acrobat Reader, but the original poster said that produced a .cpgz file. I don't know what that is, but I'll bet double clicking it produces a .zip file, which will produce a .cpgz file, etc. etc.
    I encountered this problem for the first time today. Unzipping just produced a .cpgz file, which would unzip to a .zip, which would unzip to a .cpgz ...
    None of the proposed diagnoses or solutions I found on the web worked either. The file was neither too large nor unfeasibly small, it had finished downloading, neither finder nor stuffit expander would do it.
    Then I found buried away in a post a link to The Unarchiver.  It's free,  and it worked.

  • How can I ensure that a file is only ftp-ed once?

    Hi Frens,
    Im at the level of testing my codes and I noticed my code deliberately ftps a file even though it has been sent. Some servers do not accept duplicate files to be sent at their servers therefore causing FTP ok at first attempt and FTP not successful at 2nd attempt with error message file already ftped.
    Can someone help to advice how can I overcome this issue?
    CURSOR Diebank_RRTC_Lot (pInvoiceNo varchar2,pShipTo varchar2) IS
    SELECT   'D' record_id, 'DIEBANK' dept, invoiceno,
             DECODE (INSTR (MAX (d.device), '/'),
                     '0', MAX (d.device),
                     SUBSTR (MAX (d.device),
                             INSTR (MAX (d.device), '/') + 1,
                             LENGTH (MAX (d.device))
                    ) part_name,
             ' ' pd_part_name, d.customerlotnumber intersil_lot_no,
             MAX (d.originalcustomerlotnumber) waferlotnumber,
             NVL (MAX (d.waferquantity), 0) wafer_quantity, MAX (mawb) mawb,
             MAX (hawb) hawb, MAX (shipfrom) from_org_code, shipto to_org_code,
             SUBSTR (MAX (invoicedate), 3, 6) ship_out_date,
             SUBSTR (MAX (invoicedate), 10, 6) ship_out_time,
             MAX (labeldatecode) datecode, MAX (d.lotobject) lotobject
    FROM     fwcatns_diesinventory d, fwwiptransaction w, fwmp.proman_invoice_info@mmesp pr
       WHERE d.lotobject = w.lotobject
         AND d.asyinvoiceno = pr.invoiceno
         AND activity = 'Terminated'
         AND pr.invoiceno = pinvoiceno
         AND pr.shipto = pshipto
         AND LTRIM (d.customercode) IN ('HAT', 'HUS', 'ISL', 'ELS', 'ELX')
         AND d.state IN ('RDUMMY', 'RRTC', 'RDSCRAP')
         AND (pr.invoicedate > from_sysdate
         AND pr.invoicedate <= to_sysdate)
    GROUP BY invoiceno, shipto, customerlotnumber;
    CURSOR Diebank_RRTC_Lo_Filename Is
    SELECT shipfrom, shipto, invoiceno
      FROM fwcatns_diesinventory d, fwmp.proman_invoice_info@mmesp p
    WHERE d.asyinvoiceno = p.invoiceno
       AND d.state IN ('RDUMMY', 'RRTC', 'RDSCRAP')
       AND LTRIM (d.customercode) IN ('HAT', 'HUS', 'ISL', 'ELS', 'ELX')
       AND (invoicedate > from_sysdate
       AND invoicedate <= to_sysdate);
    BEGIN
        from_sysdate := to_char(sysdate-2,'YYYYMMDD')||' 235959';
        to_sysdate := to_char(sysdate-1,'YYYYMMDD')||' 235959';
        vpath := CS_UTILS.GET_UTL_PATH ;
    FOR Rec IN Diebank_RRTC_Lo_Filename  LOOP
            v_sysdate    := to_char(sysdate-1,'YYYYMMDD');
            Filename:= Rec.shipfrom||'_'||Rec.shipto||'_'||substr(v_sysdate,1,8)||'_'||Rec.invoiceno||'.txt';
            edi_hat_data := utl_file.fopen(vpath,filename,'W');
            var1 := to_char(sysdate,'YYYYMMDD HH24MISS');
            dbms_output.put_line('Start      '||var1);
            Hdr_Sql := 'H'||to_char(sysdate-1,'YYMMDD');
            utl_file.put_line(edi_hat_data,Hdr_sql);
            nRecord := '0';
    FOR Lotcur IN Diebank_RRTC_Lot (Rec.InvoiceNo,Rec.ShipTo) LOOP
           SELECT MAX(lottype),SUM(componentqty) INTO vLotCode,vDieQty FROM fwlot WHERE sysid = Lotcur.Lotobject;
            IF    instr(vLotCode,'RR') > 0 OR instr(vLotCode,'CR') > 0 OR
                  instr(vLotCode,'RT') > 0 OR instr(vLotCode,'RE') > 0 OR
                  instr(vLotCode,'CE') > 0 OR instr(vLotCode,'RW') > 0 THEN
                  vLotCode := 'REWORK';
            ELSIF (instr(vLotCode,'E') > 0 AND instr(vLotCode,'IE') = 0 AND instr(vLotCode,'PPE') = 0) OR instr(vLotCode,'Q') > 0 THEN
                  vLotCode := 'ENGINEERING';
            ELSIF  instr(vLotCode,'P') > 0 OR instr(vLotCode,'IE') > 0 THEn
                  vLotCode := 'PRODUCTION';
            ELSE
                  vLotCode := 'PRODUCTION';
            END IF;
            Unix_Sql := rpad(LotCur.Record_Id,1,' ')||rpad(Rec.InvoiceNo,20,' ')||rpad(Lotcur.MAWB,35,' ')||rpad(NVL(Lotcur.HAWB,' '),35,' ')||
                      rpad(to_char(to_date(Lotcur.Ship_Out_Date,'YYMMDD'),'MMDDYY'),6,' ')||rpad(Lotcur.Ship_Out_Time,6,' ')||
                      rpad(Lotcur.From_Org_Code,3,' ')||
                      rpad(Lotcur.To_Org_Code,3,' ')||
                      rpad(Lotcur.Intersil_Lot_No,20,' ')||rpad(Lotcur.Dept,8,' ')||rpad(Lotcur.WaferLotNumber,20,' ')||
                      rpad(Lotcur.Part_Name,25,' ')||
                      rpad(NVL(Lotcur.PD_Part_Name,' '),25,' ')||lpad(vDieQty,10,'0')||lpad(Lotcur.Wafer_Quantity,2,'0')||
                      rpad(NVL(' ',' '),10,' ')||rpad(NVL(Lotcur.Datecode,' '),4,' ')||rpad(vLotCode,20,' ')||
                      rpad(' ',30,' ');
            utl_file.put_line(edi_hat_data,Unix_sql);
            nRecord := nRecord + 1;
    END LOOP;
            Hdr_Sql := 'T'||lpad(nRecord,5,'0');
            utl_file.put_line(edi_hat_data,Hdr_sql);
            v_msg := 'Close Unix File';
            utl_file.fclose(edi_hat_data);
          filename2 := 'toftp.hattw.'||to_char(sysdate,'YYYYMMDDHH24MISS');
          edi_ftp_data  := utl_file.fopen(vpath,filename2,'W');
          Unix_Sql := '-sfile='||filename||' -ddir=/CAS/ASN -dfile='||filename||' -user=intersil\\/carsemftp -pass=40t+bqR -ip=192.157.179.7';
          Utl_File.put_line(edi_ftp_data,Unix_Sql);
          utl_file.fclose(edi_ftp_data);
          IF Rec.ShipTo = 'UNM' Then
          filename2 := 'toftp.hattws.'||to_char(sysdate,'YYYYMMDDHH24MISS');
          edi_ftp_data  := utl_file.fopen(vpath,filename2,'W');
          Unix_Sql := '-sfile='||filename||' -ddir=/home/islasn -dfile='||filename||' -user=islasn -pass=isl@usm -ip=ftp://ipohftp.unisemgroup.com';
          Utl_File.put_line(edi_ftp_data,Unix_Sql);
          utl_file.fclose(edi_ftp_data);
          ELSIF Rec.ShipTo = 'MMT' Then
          filename2 := 'toftp.hattws.'||to_char(sysdate,'YYYYMMDDHH24MISS');
          edi_ftp_data  := utl_file.fopen(vpath,filename2,'W');
          Unix_Sql := '-sfile='||filename||' -dfile='||filename||' -user=INTERSIL -pass=S4rOgoB3 -ip=thftp.m-microtech.com';
          Utl_File.put_line(edi_ftp_data,Unix_Sql);
          utl_file.fclose(edi_ftp_data);
          --this ftp not working
          ELSIF Rec.ShipTo = 'ANS' Then
          filename2 := 'toftp.hattws.'||to_char(sysdate,'YYYYMMDDHH24MISS');
          edi_ftp_data  := utl_file.fopen(vpath,filename2,'W');
          --Unix_Sql := '-sfile='||filename||' -dfile='||filename||' -user=intersilasn -pass=anst052108 -ip=58.214.241.77';
          Unix_Sql := '-sfile='||filename||' -dfile='||filename||' -user=intersilasn -pass=anst052108 -ip=58.214.5.236';
          Utl_File.put_line(edi_ftp_data,Unix_Sql);
          utl_file.fclose(edi_ftp_data);
          ELSIF Rec.ShipTo = 'CAS' Then
          filename2 := 'toftp.hattws.'||to_char(sysdate,'YYYYMMDDHH24MISS');
          edi_ftp_data  := utl_file.fopen(vpath,filename2,'W');
          Unix_Sql := '-sfile='||filename||' -dfile='||filename||' -user=intersilasn -pass=isil62nu -ip=ftp:\\192.228.215.6';
          Utl_File.put_line(edi_ftp_data,Unix_Sql);
          utl_file.fclose(edi_ftp_data);
          ELSIF Rec.ShipTo = 'SCM' Then
          filename2 := 'toftp.hattws.'||to_char(sysdate,'YYYYMMDDHH24MISS');
          edi_ftp_data  := utl_file.fopen(vpath,filename2,'W');
          Unix_Sql := '-sfile='||filename||' -ddir=/Intransit_up_folder -dfile='||filename||' -user=carsem135 -pass=Carsem -ip=203.115.242.199';
          Utl_File.put_line(edi_ftp_data,Unix_Sql);
          utl_file.fclose(edi_ftp_data);
          END IF;
    END LOOP;Edited by: user11342432 on Oct 29, 2009 10:16 PM

    The code looks ugly.. a lot of testing of data using PL/SQL if conditions.. why do you not use SQL for that? Why not simply join the data sets, instead of coding nested loop joins.
    And why do you step outside of Oracle into the operating system?
    Our system do a lot of FTPs of Oracle data - but only uses PL/SQL. Never once having to use UTL_FILE to create external files (which requires external space, external permissions, external file management, etc).
    The "+file+" is create as CLOB (e.g. files=( filename varchar2(100), ..other attributes, file_content clob ) ).
    This is then ftp'ed using a PL/SQL package that accepts a CLOB as file input and then ftp's it to a destination server.
    Another point regarding your code - modularise. Design and build software like you would a Lego creation - using reusable blocks of code. A procedure or function should do one thing only and do it well. Not attempt to do everything and anything and clean the kitchen sink afterwards...

  • How can i unzip my files?

    hello please help how can i unzip my file that i downloaded from itune store?

    You can use Goodreader to Zip and Unzip files (tap to enlarge image)

  • Does anyone know if you can unzip a .cab file in mac osx 10.5.8? The file in question is an Excel spreedsheet template. Thank you...

    Does anyone know if you can unzip a .cab file in Mac OSX 10.5.8? I am trying to open an Excel spreed sheet template that was downloaded as a .cab file from office for mac website... thank you

    Use Stuffit Expander, Download and install from here, make sure you download the correct version for your Mac OS:
    Stuffit Expander Mac

  • My iWeb image names are incompatible with FTP servers and must be renamed but I can't find the images in iWeb. I can upload to a desktop file and change them there but then I would need to download them to a new site in iWeb to publish them.

    my iWeb image names are incompatible with FTP servers and must be renamed but I can't find the images in iWeb. I can upload to a desktop file and change them there but then I would need to download them to a new site in iWeb to publish them. 
    What's the answer?
    Thanks 

    Many thanks to  responded to my question and sorry not to get back sooner.
    Yes, I discovered by this unfortunate experience that the names of photos are a serious issue if the site is to ever go to an FTP server.  Apple should discuss this carefully in their "manual".
    One more question:  I uploaded the website to a folder on my desktop. When I open it, unlike the photos in iWeb, there are folders for each page which have all the photos in them. I went through each folder and changed the names to be FTP compatible. I'm using iWeb SEO Tool which allows one to upload from this local folder to an FTP server but having trouble.
    Is this because there is an imbedment in iWeb that uses the old photo names to link to the actual photos and it can't find them because of the name changes?
    Thanks again for your help ...
    Phil McP

  • Can't upload file - FTP error - file activity incomplete

    I'm totally new to Dreamweaver and websites - trying to pick
    up and run with a voluntary organisation's website. I have the
    public_html folder on my PC. I have set up the 'New Site' within
    Dreamweaver; made changes to the index.htm and have tried numerous
    ways of 'putting file to the remote site'.
    I get the error message as above - FTP error - file activity
    incomplete re this 1 file called index.htm.
    I have no idea how to trouble shoot this - used a colleague
    who successfully uploaded a sample index1.htm, yet when I tried I
    couldn't do anything; used my website host technical support but
    they don't know Dreamweaver and although they tried various ways
    they couldn't help.
    Please, is there anyone who can throw some light of what
    might be the problem?

    Hi Eunice,
    In your site definition in DW, you set up the FTP parameters.
    In the
    Advanced tab, check the following:
    Access: FTP
    FTP Host: Enter the URL of the server, without any
    http:// or www
    or subdirectories (i.e. just servername.domain )
    Host directory: /public_html/
    Login: Use your username that you created the site with
    Password: Use your password for that account
    Select the "Save" and the "Use Passive FTP" check boxes. Then
    click "Test".
    You should get a message saying "Macromedia Dreamweaver
    connected to your
    Web Server successfully."
    If this doesn't work, then you need to double check your
    login information
    and your Internet connection.
    HTH
    Steve
    "eunice07" <[email protected]> wrote in
    message
    news:fgjcjt$73k$[email protected]..
    > I'm totally new to Dreamweaver and websites - trying to
    pick up and run
    > with a
    > voluntary organisation's website. I have the public_html
    folder on my PC.
    > I
    > have set up the 'New Site' within Dreamweaver; made
    changes to the
    > index.htm
    > and have tried numerous ways of 'putting file to the
    remote site'.
    > I get the error message as above - FTP error - file
    activity incomplete re
    > this 1 file called index.htm.
    >
    > I have no idea how to trouble shoot this - used a
    colleague who
    > successfully
    > uploaded a sample index1.htm, yet when I tried I
    couldn't do anything;
    > used my
    > website host technical support but they don't know
    Dreamweaver and
    > although
    > they tried various ways they couldn't help.
    >
    > Please, is there anyone who can throw some light of what
    might be the
    > problem?
    >

  • How can I open and edit files that were developed and published by ftp to my host on my old macbook, which I can no longer access.

    How can I open and edit files that were developed and published via ftp to my host on my old macbook, which I can no longer access. The HD containing the files cannot be accessed. I want to be able to download the published files to be edited in iweb?

    You CAN'T download published files and then edit them in iWeb because iWeb can't open them - it has no import facility so is unable to open any html or css files - a previously published site.
    You can download these files yes, but you'll need to use them as a guide or to cut and paste text from there whilst you re-build your site in iWeb.
    The only other way is to download the files and then open them with an html editor such as TextWrangler or use one of the other web design programmes out there that is capable of importing html and css such as Dreamweaver of Flux 4.
    These are your only alternatives as iWeb can't import and if you want to continue to use iWeb, then you'll have to re-build your site from scratch.  If you do just remember to back up your domain.sites file this time around - it is found under your User/Library/Applicaion Support/iWeb/domain.sites.

  • Can't Unzip Files

    However, I can't unzip files that were created elsewhere. Archiving a file then unzipping the resulting zip file works fine. This, of course, was never an issue with 10.5.8.

    Macs can actually unzip files that were zip using the mac but if another program was used to zip it like 7zip or winrar or some other 3rd party apps. Macs won't be able to unzip some of those hence you need to use a 3rd party app. In any case you may close this thread

  • How can I Unzip files on Ipad

    I have just started playing with my ipad and opened a mail with a zipped file attached. The Ipad would not unzip so I went to Maczip and tried to download, everything looked OK, but then I got a message saying Safari could not open the file

    Blue Meanie wrote:
    Yes, you can unzip files on an iPad. get the app Airsharing HD, and you can open zipped files in airsharing from email, or from safari.
    Here's a screengrab
    http://img.skitch.com/20100503-1tyxp7wua2em3aukbu58dmexhn.jpg
    Sorry, should have said you can't unzip without an application

Maybe you are looking for

  • Flash Drive Unreadable - HELP PLEASE!!

    "The disk you inserted was not readable by this computer." Story of my life. I have a 32gb Micro Center brand flash drive. It's completely full of pictures, videos, documents, and files. Every time I stick it into my Macbook Pro, it tells me its unre

  • Configuration XML Validation Strict in BPEL Process

    Hi, If we have 10 BPEL process and all using file adapter which reads or write XML file against schema. We have a configuration in BPEL console that validateXML - Validate the incoming and outgoing xml documents: "Stict or None" Stict means validate

  • How to Import 9i Repository into 10g Repository

    I downloaded and installed the latest developer suite 10.1.2.0.2 on one server and and I have old version of designer 9.0.2.10 repository on another server. I created an export of the repository from 9.0.2. I brought up the RAU using the 10.1.2 and t

  • Annoying Safari problem after Mountain Lion update...

    I've updated my Macbook Pro to Mountain Lion OS X a while ago and now use Safari 6.0 as my main browser. The zoom button (green button with the plus sign) on the top left corner doesn't seem to be working properly, though. Everytime I click on it, th

  • Accessing OIM APIs remotely

    Hi all, I am trying to access the OIM API remotely from OAM and I am getting the following error. Please help. Thor.API.Exceptions.tcAPIException: unread block data      at Thor.API.tcUtilityFactory.getPropertyValue(Unknown Source)      at Thor.API.t