Zip download CRC error  javascript

zip download CRC error  javascript
Hello xperts, i am trying to develop a jsp page containing a javascript code which should download a zip file, i have a script that works fine for this as a separated part ,but when i intgegrate this code to anoter, it download the  .zip file corrupted
the separated code is as follows:
Should i fix anything in this individual code?
Tanx in advance!!
      String ubicacion="";
            String packzip="fileone.zip";
           ubicacion="C:
"+packzip;
            response.setContentType("application/zip");
            response.addHeader("Content-Disposition", "attachment; filename="+packzip);
            try{
                  File Zarchivo= new File(ubicacion);
                  int TamZarch=(int)Zarchivo.length();
                  FileInputStream fEnt = new FileInputStream(Zarchivo);
                  PrintWriter Mnsj =  response.getWriter();
                    int c=-1;
                    while ((c = fEnt.read()) != -1){
                          Mnsj.print((char)c);
                    fEnt.close();
                  Mnsj.flush();
                  Mnsj=null;                                                     
            }catch(Exception e){
%>
Finally i send the java script code (sdn page cannot save this part but it consists on the following steps:)
settting window pop up name
setting window parameters
opening the file
setting timeout to 5000 ms
closing window
Edited by: NWrscr on Aug 21, 2011 11:35 PM
Edited by: NWrscr on Aug 21, 2011 11:39 PM
Edited by: NWrscr on Aug 22, 2011 12:42 AM

Done

Similar Messages

  • VMware Edition Faulty downloads crc errors

    Hello - I have been trying for days to download the software at this site>
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/102c6e47-cd8e-2a10-8b96-a2102923212f
    Download SAP NetWeaver 7.0 - Java and ABAP Trial Version on Linux - VMware Edition Part 1 (734.003.200 Bytes)
    Download SAP NetWeaver 7.0 - Java and ABAP Trial Version on Linux - VMware Edition Part 2 (734.003.200 Bytes)
    Download SAP NetWeaver 7.0 - Java and ABAP Trial Version on Linux - VMware Edition Part 3 (734.003.200 Bytes)
    Download SAP NetWeaver 7.0 - Java and ABAP Trial Version on Linux - VMware Edition Part 4 (734.003.200 Bytes)
    Download SAP NetWeaver 7.0 - Java and ABAP Trial Version on Linux - VMware Edition Part 5 (734.003.200 Bytes)
    Download SAP NetWeaver 7.0 - Java and ABAP Trial Version on Linux - VMware Edition Part 6 (734.003.200 Bytes)
    Download SAP NetWeaver 7.0 - Java and ABAP Trial Version on Linux - VMware Edition Part 7 (734.003.200 Bytes)
    Download SAP NetWeaver 7.0 - Java and ABAP Trial Version on Linux - VMware Edition Part 8 (371.725.089 Bytes)
    Download SAP NetWeaver 7.0 - Java and ABAP Trial Version on Linux - VMware Edition ReadMe (24.438 Bytes)
    Error: CRC mismatch in file "SLES10SP1_Test_Drive(2)-s008.vmdk"
    I have a high speed connection and I nad downloaded part 8 and Part 7 quite a few times just to have the extract blow up.
    It would be nice to be able to add this to the download manager and to have the MD5 or SHA-1 hash checks for these files.
    Are there any other mirrors to download these files?

    Hi Joseph,
    as far as I know there no mirrors for that but some others complained about CRC errors as well.
    have a look at there SDN links;
    Where to download SLES10 SP1 SAP Version?
    SAP NetWeaver 7.0 - Java and ABAP Trial Version on Linux - VMware Edition - Tips & Tricks
    http://download.novell.com/protected/Summary.jsp?buildid=DkzX86IfrCI~
    Cheers,
    Robert

  • Download a zip file with gui_download = CRC error

    Hello erverybody,
    I download a zip compressed file with gui_download (cl_gui_interface_services) in binary mode.
    When I try to open it, I have a crc error. Does anybody has any idea why?
    here the code:
           TYPES: begin of t_zip,
                 text(1024) type c,
                 end of t_zip.
          DATA: itab_zip type table of t_zip,
                wa_zip type t_zip.
          OPEN DATASET p_fileon IN BINARY MODE FOR INPUT.
          IF sy-subrc <> 0.
            MESSAGE text-e01 TYPE 'E'.
          ENDIF.
          DO.
            READ DATASET p_fileon INTO wa_zip MAXIMUM LENGTH 1024.
            APPEND wa_zip TO itab_zip.
            IF sy-subrc <> 0.
              EXIT.
            ENDIF.
          ENDDO.
          CLOSE DATASET p_fileon.
          MOVE p_filedw TO filename.
          CALL METHOD cl_gui_frontend_services=>gui_download
            EXPORTING
              filename                  = filename
              FILETYPE                  = 'BIN'
            CHANGING
              data_tab                  = itab_zip
    Thanks
    Joachim

    Hi Joachim,
    1. use this code (just copy paste in new program)
    2. It will download from SERVER to front-end.
    3.
    *& Report  YBCR_FILEDOWNLOAD                                           *
    REPORT  ybcr_filedownload                       .
    DATA
    DATA : file_name TYPE string.
    DATA : BEGIN OF itab OCCURS 0,
           ln(255) TYPE c,
           END OF itab.
    SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS : appfn(150) TYPE c LOWER CASE OBLIGATORY.
    PARAMETERS : p_file LIKE rlgrap-filename OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b1.
    AT SELECTION SCREEN
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CLEAR p_file.
      CALL FUNCTION 'F4_FILENAME'
        IMPORTING
          file_name = p_file.
      file_name = p_file.
    START-OF-SELECTION
    START-OF-SELECTION.
      OPEN DATASET appfn FOR INPUT IN TEXT MODE  ENCODING DEFAULT .
      IF sy-subrc <> 0.
        MESSAGE s999(yhr) WITH 'COULD NOT OPEN FILE ON APP SERVER'.
        LEAVE LIST-PROCESSING.
      ENDIF.
      DO.
        READ DATASET appfn INTO itab.
        IF sy-subrc = 0.
          APPEND itab.
        ELSE.
          EXIT.
        ENDIF.
      ENDDO.
      file_name = p_file.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
      BIN_FILESIZE                    =
          filename                        = file_name
      FILETYPE                        = 'ASC'
      APPEND                          = ' '
      WRITE_FIELD_SEPARATOR           = ' '
      HEADER                          = '00'
      TRUNC_TRAILING_BLANKS           = ' '
      WRITE_LF                        = 'X'
      COL_SELECT                      = ' '
      COL_SELECT_MASK                 = ' '
      DAT_MODE                        = ' '
      CONFIRM_OVERWRITE               = ' '
      NO_AUTH_CHECK                   = ' '
      CODEPAGE                        = ' '
      IGNORE_CERR                     = ABAP_TRUE
      REPLACEMENT                     = '#'
      WRITE_BOM                       = ' '
      TRUNC_TRAILING_BLANKS_EOL       = 'X'
      WK1_N_FORMAT                    = ' '
      WK1_N_SIZE                      = ' '
      WK1_T_FORMAT                    = ' '
      WK1_T_SIZE                      = ' '
    IMPORTING
      FILELENGTH                      =
        TABLES
          data_tab                        = itab
      FIELDNAMES                      =
    EXCEPTIONS
      FILE_WRITE_ERROR                = 1
      NO_BATCH                        = 2
      GUI_REFUSE_FILETRANSFER         = 3
      INVALID_TYPE                    = 4
      NO_AUTHORITY                    = 5
      UNKNOWN_ERROR                   = 6
      HEADER_NOT_ALLOWED              = 7
      SEPARATOR_NOT_ALLOWED           = 8
      FILESIZE_NOT_ALLOWED            = 9
      HEADER_TOO_LONG                 = 10
      DP_ERROR_CREATE                 = 11
      DP_ERROR_SEND                   = 12
      DP_ERROR_WRITE                  = 13
      UNKNOWN_DP_ERROR                = 14
      ACCESS_DENIED                   = 15
      DP_OUT_OF_MEMORY                = 16
      DISK_FULL                       = 17
      DP_TIMEOUT                      = 18
      FILE_NOT_FOUND                  = 19
      DATAPROVIDER_EXCEPTION          = 20
      CONTROL_FLUSH_ERROR             = 21
      OTHERS                          = 22
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    regards,
    amit m.

  • Crc error in download of OBIEE 11g

    I'm trying to get OBIEE 11g installed, but sadly one of the files i want to download keeps saying it is corrupt.
    http://download.oracle.com/otn/nt/bi/111130/bi_windows_x86_111130_32_disk1_2of2.zip gives a crc-error when extracting it. I tried downloading it multiple times using different browsers/computers but no luck.
    Do more people experience this or does anybody know a solution for this. A mirror to download the file from works fine for me too. Disk 1 file 1 of 2, and both files from disk 2 download and extract just fine.
    thnx for helping.

    Hi,
    We have downloaded the files without any corruption,sometimes it happens due to internet connectivity.
    Follow this link for download and installation http://onlineappsdba.com/index.php/2010/08/14/obiee-11g-111130-documentation-installation/
    Hope helps you.Mark points.
    Cheers,
    KK

  • Hi, We have an application  built using HTMl 5 and Javascript running on IPad2, iOS5.1 Safari 5.1. When we try to download a file(.pvw file) in that application safari throws "Download failed" error. Please suggest what needs to be done.

    Hi,
    We have an application  built using HTMl 5 and Javascript running on IPad2, iOS5.1 Safari 5.1.
    When a file url is clicked instead of asking for Save or Open or Cancel options, the file gets opened on IPad by default.
    Is this default behaviour which cannot be changed or can it be configured to ask user preference?
    When we try to download a file(.pvw file -> a model file) in the above application, safari throws "Download failed" error.
    Please suggest what needs to be done.
    Regards,
    Pramod

    Safari on an iPad in general does not allow downloading of files. That's a safety precaution in the iOS SDK to keep unauthorized content off of iOS devices. Safari will open from the web site file types that it can handle, but direct downloading isn't normal behavior, and I don't believe the behavior can be changed, though you can try asking in the developer forum, either here or the one to which you have access as a member of Apple's iOS developer program.
    Regards.

  • Download with crc error

    May be sombody knows how to find bad piece of splitted zip
    distribution ? I've got CRC ERROR in some FILES in Unziping. I
    used GetRight and Ftp (with reget) from Linux.
    null

    Make text search in the body of zip-file with name of bad file.
    null

  • How can I narrow down what's causing CRC errors over internet downloads?

    I'm trying to determine if its something wrong with my hardware configuration, my software or my actual internet connection that is giving me trouble.  
    Recently with my new build I am noticing all my downloads being large or small ending up either not fully downloaded or just full with CRC errors.  
    I'm not even sure where to begin as I've been trying to troubleshoot this for a few days and it just seems to keep getting worse.  
    My initial problem was the new nforce ide drivers that didn't quite gel with my optical drives.  I ended up unstalling the ide drivers and my optical drives worked correctly again.  (problem with optical drive was when you put a dvd writer (lite on 411s) in the system would freeze and not play the movie until the disk was ejected - then everything would return to normal)
    After trying to find a fix or someway to get the drivers to work I started to notice I had trouble downloading large files off news servers.  For the past 3 days I just downloaded random stuff that looked to be complete as in all the files were there with pars.  I download the files and the winrar gives me crc errors and the pars say the files are incomplete.  
    Then I start to try to download any large file off the internet - game demos mostly off gamespy.com and the downloads just stop midway.  
    All these problems just started to add up and I'm having a hard time trying to narrow down and knock off what it is and what not.  
    Basically to start is there a way I can see if it's something related to my ide drivers, aspi drivers, internet connection, cable problem etc.  Please help, it's driving me nuts.  =)
    System
    AMD 64 3000+
    PQI Turbo 1 gig
    Neo K8n Platinum (Bios 1.4)
    Lite on DVD
    Lite on 411s DVD writer
    PNY 6800GT
    Antec 420 TruPower (20amps on 12v)
    Audigy 2
    Help me please..  

    Are you running xp sevice pack 2?  I was having issues with having to refresh my browser several times to get a page to load,   and downloads sometimes stopped.
    I downloaded the following sp2 patch from microsoft and it fixed the refresh issues,
    http://www.winnetmag.com/windowspaulthurrott/Article/ArticleID/44014/windowspaulthurrott_44014.html
    If you are browsing while the download runs,  it could be sp2's new 10 connection limit.   I tweaked it to 50 connections and fixed ie stalling when loading long forum pages with alot of signatures present.  (I tweaked it with xp-anti spy)
    Can you tell Im guessing?
    Possibly a bad ide or sata cable?
    Have you tried running memtest to test for errors?   I prefer goldmemory as I believe it is more sensitive to errors with an a64.   It found errors memtest didnt.
    This system is giving you a much harder time than it should.  Maybe you have a flaky board or memory errors.
    good luck at any rate.  (p.s. its 3 am here,  couldnt sleep,  prob not making alot of sense at this point.  lol)

  • Bad CRC error when install WebLogic Server 9.2 on Itanium platform.

    I download the install image according below steps:
    1. Go to the BEA download site a http://commerce.bea.com.
    2. Click on the link for Bea WebLogic.
    3. Click on the link for WebLogic Server 9.2.
    From the list of OS Platforms, select Novell SUSE Linux Enterprise Server (9, Itanium).
    4. Download the server920_linux64.bin binary installer.
    Then I try to install on my Itanium box, bad CRC errors occured as below output messages:
    juggernaut:/opt/wls-j2/image # ./server920_linuxia64.bin
    Extracting 0%./tmp//fileZeI8cc/jrockit-jre1.5.0_04/lib/charsets.jar bad CRC c453bc6d (should be 5a4ab10f)
    ............/tmp//fileZeI8cc/jrockit-jre1.5.0_04/lib/rt.jar bad CRC 0f42e0de (should be ce1d9aff)
    /tmp//fileZeI8cc/bids.jar bad CRC c79d217d (should be dc406837)
    /tmp//fileZeI8cc/comdev.jar bad CRC 55cee4be (should be bce80f3d)
    ./tmp//fileZeI8cc/wizard.jar bad CRC 54069bdc (should be c6327edd)
    ../tmp//fileZeI8cc/linux_ia64_jrockit90_150_04_jdk.zip bad CRC b70b8a17 (should be 52ff2ba4)
    ........./tmp//fileZeI8cc/linux_ia64_jrockit90_150_04_jrockit.zip bad CRC 406b75ed (should be 4f913183)
    .............................../tmp//fileZeI8cc/wls9200server_75_COMP_linux64en.jar bad CRC 2bc35275 (should be fe2bcb26)
    ../tmp//fileZeI8cc/wls9200examples_75_COMP_linux64en.jar bad CRC cdb78916 (should be cf255dc9)
    ......../tmp//fileZeI8cc/wls9200plugins_75_COMP_linux64en.jar bad CRC 49e4694b (should be 0b135269)
    ................................./tmp//fileZeI8cc/wlw9200app_75_COMP_linux64en.jar bad CRC fbcdda1a (should be 56d31118)
    100%
    ** Error during extraction, error code = 2.
    Here is my box configurations:
    Disk configuration:
    juggernaut:/opt/wls-j2/image # df -k
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/sda3 35002316 4454504 30547812 13% /
    tmpfs 2019488 48 2019440 1% /dev/shm
    /dev/sda1 205587 6587 199000 4% /boot/efi
    RAM configuration:
    juggernaut:/opt/wls-j2/image # vmstat
    procs -----------memory---------- ---swap-- -----io---- system ----cpu----
    r b swpd free buff cache si so bi bo in cs us sy id wa
    0 0 0 1798832 114224 1855424 0 0 3 20 6 0 0 0 100 0
    Kernel:
    Linux juggernaut 2.6.5-7.244-default #1 SMP Mon Dec 12 18:32:25 UTC 2005 ia64 ia64 ia64 GNU/Linux
    By the way, I ftp the image via binary model.
    I've no idea about the errors, any help will be greatly appreciated, thks a million in advance!

    Hi,
    I had come up with this issue twice, once I download WL from a server from Asia, and had this issue. I just download once again from the server at US, and the issue was gone. The second time it was a weird anti virus configuration that tried to scan the file while the installation was taking place (I do not think this last one applies here.)
    Regards,
    LG

  • Crc error on oracle 9i for NT

    after downloading disk1, file sizes do not match posted size and on extraction by WINZIP I get a crc error. Is this a download problem or a strange unzip problem or a glitch in the way the files were zipped?

    the same problem I have encounter while downloading personal oracle 9i for windows98.

  • CRC Error in OBI 11 for Windows Disk2

    Downloaded all 4 zips, 3 of 4 fine , disk2 reports CRC error, unzipped with 7-zip and WinRAR, both same error. It unzips though, but running the Installer results in CRC error too a long way into the install.
    Downloaded from OTN twice, same error.
    I will try OBI11 off edelivery tomorrow and see if its any different
    Chris.

    Response : edelivery disk2 is fine. Therefore concluding there is a problem with the OTN upload.
    If someone from otn team could confirm back when its fixed please.
    TIA
    Chris.

  • LMS32win evaluation CRC errors

    I am trying to install the lms32win (LAN Managment System) evaluation software.  The download from cisco.com using the cisco dowload tool seems to go ok.  However, when I try to copy the zip file to a usb drive windows xp gives me a crc error so I can't make the copy.
    I tried burning the zip file to disc.  I still get the CRC error when I tried to copy it from the CD-R to another machine.
    I tried unzipping the file, but the resulting exe gave me CRC's when I try to copy also.
    Is the lms32win a bad file?
    Thank you.

    Perhaps the image that's currently on the servers is corrupted. I'd suggest contacting the TAC for a verified copy. I'd give you one but I don't think that would be consistent with the license terms one acknowledges when downloading.

  • Gunzip of ALL Oracle .gz files for linux gives crc error

    So that we may better diagnose DOWNLOAD problems, please provide the following information.
    - Server name - http://download.oracle.com/otn/linux/oracle9i/9201 and http://download.roacle.com/otn/linux/ias/9ias/902
    - Filename - lnx_920_disk1.cpio.gz to pick one. lnx_920_disk[123].cpio.gz, lnx_iasv20_disk[1234].cpio.gz, Oracle9iAS_Rel2_Interop_Patch_Linux.cpio.gz, and 9iAS_902_Integration_LINUX.cpio.gz to be complete
    - Date/Time - multple times - last attempt evening of 7/5/02 and morning of 7/6/02
    - Browser + Version - Mozilla 0.9.2.1
    - O/S + Version - Fresh install of Red Hat 7.2
    - Error Msg - gunzip: lnx_920_disk1.cpio.gz: invalid compressed data--crc error, gunzip: lnx_920_disk1.cpio.gz: invalid compressed data--length error
    gunzip continues to fail with "crc error" even after downloading all the files multiple times. Each time the size is correct to the other downloads and the the size stated on the web site. No error was received during the download process. The problem appears to be with the file on the server. I realize that Linux is not a big market for Oracle, but some assistance in trying to fix this would be appreciated.
    Problems also exist with 9.0.2iDS_LINUX.cpio
    cpio -icd < 9.0.2iDS_Linux.cpio results in cpio: premature end of file
    The .zip, .jar, and .sh files are fine.
    Thank you,
    Jeremy

    Kyle, try testing to see what type of files they really are. eg. file <file name>. I had a similar problem, it turns out that they are cpio format not gzip. You should be able to extract the cpio archive using "cpio -idmvI /mnt/cdrom/Linux9i_Disk1.cpio.gz"
    Good Luck

  • CRC Error on installing 10.2.0.1 on Linux

    I've downloaded the 10.2.0.1 full Grid version for Linux and tried to install it
    on Oracle's Enterprise Linux....
    I keep getting a CRC error on disk 2....has anyone else seen this ?
    Thanks
    Bernard

    Well if you've tried it more than once, then there is no point retrying it.
    I've seen this happen in the past and redownloading it worked...but may be it's a bad copy online.
    Let' see if someone else has seen this error...

  • Weblogic Server 8.1 for japanese lang install comes out with CRC error

    We are trying to install the evalution copy of weblogic 8.1 sp1 Japanese. During extraction it comesout with following error.
    Extracting 0%........../mizrwsdv/weblogic/tmp //aaabIaiHU/jre141_03/lib/font.properties.UTF8.5.6 ba
    d CRC d4bf6e9f (should be 47f91f38)
    ..........................................................................................100%
    ** Error during extraction, error code = 2.
    Any solution for this?
    Regards
    Jey

    Did it complete or abort at that error?
    It appears to be just a font file; it the installation completed, you might be able to
    ignore this. If more CRC errors occur, the download might be corrupted.
    Wayne Scott
    Jeyaraj wrote:
    We are trying to install the evalution copy of weblogic 8.1 sp1 Japanese. During extraction it comesout with following error.
    Extracting 0%........../mizrwsdv/weblogic/tmp //aaabIaiHU/jre141_03/lib/font.properties.UTF8.5.6 ba
    d CRC d4bf6e9f (should be 47f91f38)
    ..........................................................................................100%
    ** Error during extraction, error code = 2.
    Any solution for this?
    Regards
    Jey

  • Why I get CRC error when copying outlook.ost file?

    My workstation is using NTFS, Outlook 2007 with Exchange 2007 server.
    My outlook.ost file is 1.7GB.
    As my Outlook runs into problem, I tried to copy the outlook.ost file to another location for repair, but I keep getting CRC errors and the file was not copied.
    I also tried to use winrar to compress it and it runs into the same CRC error.
    Q#1. What causes this CRC error? hard disk error or software?
    Q#2. How to repair such CRC error?
    Thanks.

    Hi Peter,
    The cyclic redundancy check, or “CRC” error, indicates a bad spot/corruptions within the file that you are trying to copy and in lot of cases with your hard disk.
    To make sure if the problem is with the .ost file or your hard disk, you can fire up a Command Prompt window, and then copy the file to NUL:
    C:>CD (path of your .ost file)
    C:(path of your .ost file)>copy name.ost NUL
    If this succeeds, the problem is with your .ost file. If this fails, it should be a hardware based disk issues.
    If it's an issue with your .ost file, I'd suggest to run
    scanpst.exe tool to repair your data file, then check if this fixed it.
    When the issue is hardware based, you probably need to find Disk Errors in the System log of your Event Viewer. You can access the Event Viewer by going to:
    Control Panel-> Administrative Tools-> Event Viewer
    By the way, .ost file is actually a local copy of your mail items on the server. For a corrupted .ost file, you actually don't need to "copy the outlook.ost file to another location for repair". You can simply rename it to .ost.old
    or delete it, and then re-launch Outlook to let it generate a new .ost file from server.
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

Maybe you are looking for