Cl_abap_gzip

Hi!
  I would like to zip a document i retrieved from content management system into a folder, such as <b>template.zip</b>
  I tried to use the class cl_abap_gzip=>compress_binary, and download to local drive. It was downloaded in the .zip file, but I was unable to open this .zip file.
  Below is my code to zip and gui_download. Am i downloading to the right extension (.zip) or it should be coded in another way?
  Kindly review and correct my mistake.
" retrieve document from content management system
CALL METHOD cl_crm_documents=>get_with_table
  EXPORTING
    loio                = ls_loios
    raw_mode            = 'X'
  IMPORTING
    file_access_info    = lt_file_info
    file_content_binary = lt_contents
    error               = ls_error.
READ TABLE lt_file_info INTO ls_file_info INDEX 1.
DATA: raw_in        TYPE xstring,
      gzip_out      TYPE xstring,
      input_length  TYPE i,
      raw_in_len    TYPE i,
      gzip_out_len  TYPE i,
      crc32(4)      TYPE x.
input_length = ls_file_info-file_size.
" convert to xstring
CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
  EXPORTING
    input_length       = input_length
IMPORTING
   buffer             = raw_in
  TABLES
    binary_tab         = lt_contents
EXCEPTIONS
   failed             = 1
   OTHERS             = 2.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
" get the length of xstring
raw_in_len = XSTRLEN( raw_in ).
" compress the file
TRY.
    CALL METHOD cl_abap_gzip=>compress_binary
      EXPORTING
        raw_in         = raw_in
        raw_in_len     = raw_in_len
        compress_level = 6
      IMPORTING
        gzip_out       = gzip_out
        gzip_out_len   = gzip_out_len.
  CATCH cx_parameter_invalid_range .
  CATCH cx_sy_buffer_overflow .
ENDTRY.
" convert the compressed xstring to binary
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
  EXPORTING
    buffer        = gzip_out
  IMPORTING
    output_length = gzip_out_len
  TABLES
    binary_tab    = lt_contents.
" download to presentation server
CALL METHOD cl_gui_frontend_services=>gui_download
  EXPORTING
    bin_filesize            = gzip_out_len
    filename                = 'c:template.zip'
    filetype                = 'BIN'
  CHANGING
    data_tab                = lt_contents
  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
    not_supported_by_gui    = 22
    error_no_gui            = 23
    OTHERS                  = 24.
Thanks & Regards,
Ginnie

Hi Julio,
  Thanks for your reply. Does it mean that this gzip only works in unix system, and not for windows system?
  Is there any other classes that I can use to zip a file into extension .rar or .zip?
  Kindly advise.
regards,
ginnie

Similar Messages

  • Compress pdf-files by using method cl_abap_gzip= compress_binary

    Hello,
    I tried to create a zip file from a pdf by using the following code from Otto Frost:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c6b79908-0a01-0010-8ca0-b77aff37726d">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c6b79908-0a01-0010-8ca0-b77aff37726d</a>
    (Very helpful, thank you very much!)
    When extracting the zip archive with winzip or gzip(unix) Adobe Reader only shows an empty page. If I compare the original pdf-file with the extracted one, using a text editor, the difference is, that the extracted file has more line-feeds than the original one. When removing these line-feeds manually, the pdf works.
    Has anyone an idea what can be the reason of this mistake.
    Best regards
    Gerald Seizinger
    Message was edited by:
            Gerald Seizinger

    Hi Julio,
      Thanks for your reply. Does it mean that this gzip only works in unix system, and not for windows system?
      Is there any other classes that I can use to zip a file into extension .rar or .zip?
      Kindly advise.
    regards,
    ginnie

  • Creating an XLS file and Zip it

    Hi All,
    we have a requirement where in we have to create an XLS file from internal table. This xls file then has to be zipped and mailed.
    If anyone knows how to create an xls file and zip it in WebDynpro, without using OPEN, CLOSE DATA SET etc, Please let us know. It will be of great help.
    Thanks,
    Anand

    >2) Convert the STRING format to XSTRING format by using the FM SCMS_STRING_TO_XSTRING.
    Actually you should use CL_BCS_CONVERT=>STRING_TO_XSTRING now.
    >3) Use the method COMPRESS_BINARY of class CL_ABAP_GZIP to compress the XSTRING file.
    You probably want to use CL_ABAP_ZIP instead of CL_ABAP_GZIP.  CL_ABAP_GZIP only does compression, which is fine for storing a single packet of data in the database.  However CL_ABAP_ZIP is better suited for mult-part zip (multiple inner files).
    >4) Use the method SEND_WEB_MAIL of class CL_HRRCF_SERVICES_MAIL to mail across the zipped contents.
    This seems to be an HR specific class. Better to use the cross application, NetWeaver provided functionality for sending mail - CL_BCS.

  • How can i send a folder containing multiple excel file to a mail address?

    hi ,
           i have report showing details sales report. Key field is customer id.  my requirement is to send the output of this report as excel file  to a mail id according to customer id. suppose there are 100 customer id , so 100 excel sheet will go to the mail. I have done it. But now  i want to send a folder or zip folder that's containing all the excel file to the mail id  so the mail user can download that folder at a time containg all the excel file. Is it possible ? if then how.  i have used cl_bcs , cl_document_bcs and if_recipient_bcs  these class and interface.
    I need your suggestion.

    Hi Sandipan,
    You can use some of this classes: CL_ABAP_ZIP or CL_ABAP_GZIP
    For example:
    DATA: OBJ_ZIP TYPE REF TO CL_ABAP_ZIP,
                ZIP_FILE  TYPE XSTRING.
    CREATE OBJECT OBJ_ZIP.
    OBJ_ZIP->ADD( NAME = <file_name>   CONTENT = CONTENT ).
    OBJ_ZIP->ADD( NAME = <file_name2> CONTENT = CONTENT ).
    ZIP_FILE = OBJ_ZIP->SAVE( ).
    You can also visit this Otto Frost detailed post on GZIP:
    http://wiki.sdn.sap.com/wiki/display/profile/GZIP
    I hope that helps.
    Regards,
    John
    Edited by: John Smith on Feb 5, 2012 2:21 PM

  • ABAP- JAVA : How to unzip a zip file sent by ABAP

    Hello,
    We are using JCO to exchange the XML strings (File Sizes can range upto couple of MBs) between ABAP and JAVA. We were earlier using a STRING parameter for XML data exchange. This approach was resulting in huge performance overheads. As per our initial performance investigations, we have identified that time taken for XML exchange using JCO is the major bottlenecks.
    Currently we are evaluating Zip - Exchange - Unzip mechanism for XML exchange.
    We now try to ZIP the export content using following ABAP code:
          TRY.
              CALL METHOD cl_abap_gzip=>compress_text
                EXPORTING
                  text_in  = lv_xmlstring
                IMPORTING
                  gzip_out = ev_xmlstring.
    This returns an XSTRING (zipped) which is lesser in size as compared to the earlier xml STRING.For zipping the XML String this code works fine. But on java end on using the following code (for unzipping):
    public static String unzipStringFromBytes( byte[] bytes ) throws IOException
        ByteArrayInputStream bis = new ByteArrayInputStream(bytes);
        BufferedInputStream bufis = new BufferedInputStream(new InflaterInputStream(bis));
        ByteArrayOutputStream bos = new ByteArrayOutputStream();
        byte[] buf = new byte[1024];
        int len;
        while( (len = bufis.read(buf)) > 0 )
          bos.write(buf, 0, len);
        String retval = bos.toString();
        bis.close();
        bufis.close();
        bos.close();
        return retval;
    We get the following error:
    java.util.zip.DataFormatException: unknown compression method
         at java.util.zip.Inflater.inflateBytes(Native Method)
         at java.util.zip.Inflater.inflate(Inflater.java:215)
    Please share java code snippet which we can use in our program to retrieve our initial XML string.
    Best Regards,
    Aayush

    Hi,
    i took a sequence '0123456789' and gziped it with your ABAP code snipped.
    Result is in HEX:
    '33 30 34 32 36 31 35 33 B7 B0 04 00'
    Than i took an good old gzip executable and gzipped a text file with the same sequence in compression mode 6(default of ABAP Method).
    Result in HEX:
    '1F 8B 08 08 BA B1 D1 45 00 0B 31 2E 74 78 74 00'
    '33 30 34 32 36 31 35 33 B7 B0 04 00 C6 C7 84 A6'   <-- quiet similar with ABAP gzip data
    '0A 00 00 00'
    It seems that some gzip headers and trailers are missing from ABAP Processor's output, i don't know why, maybe it will help you to fake the file headers's to your data section: http://www.gzip.org/zlib/rfc-gzip.html
    Other topic is your Exception: java.util.zip.Inflater.inflate(Inflater.java:215)
    Inflater is used for ZLIB compressed files, try to pass your InputStream to an Object of [java.util.zip.GZIPInputStream] like:
    http://www.galileocomputing.de/openbook/javainsel6/javainsel_12_010.htm [Listing 12.29]
    Let me know if it works and have fun.....

  • Unable to access Archived data with an ABAP Query

    I have an ABAP Query that uses Logical Database KDF (Vendor) for reporting.
    KDF is Archive Enabled and I can access archived document via SAP standard programs that used the KDF Logical Database.
    the query appears accessing the data but nothing shows on the report.
    Has anyone successfully written and ABAP query and included access to the Archived data?
    Any help is appreciated.

    Hi Gena,
    I'm facing exactly the same problem as you...
    Since this post is an old one, I imagine that you may not remember, but I have to try...
    Have you solved it? If yes, could you please tell me how?
    I've tried to use CL_ABAP_GZIP and CL_ABAP_UNGZIP_BINARY_STREAM and I'm getting the same error 30 at the  IctDecompressStream function.
    Tks in advance,
    Flavio.

  • Zip binary data and save zip file to disk at bsp

    Hi,
    I try to compress (zip) binary data (for example a picture) and then give it to a html page. I use the cl_abap_gzip=>compress_binary method and it seems to work. But when I save the zip-file to harddisk over the popup at the html - page, the file could not be opened. WinZip says that it is an unvalid archive.
    Can anybody help me?
    Here my example coding at the OnInitialization Event of the business server page:
    * event handler for data retrieval
    * local variables
    DATA: xsourcefile TYPE xstring.
    DATA: xzippedfile TYPE xstring.
    DATA: source_file_mime_type TYPE string.
    DATA: xzippedcontentlength TYPE i, xzippedcontentlengthstring TYPE
    string.
    * References
    DATA: o_mime_api TYPE REF TO if_mr_api.
    * processing
    * +++ Read File from MIME-Repository (binary) +++
    CALL METHOD cl_mime_repository_api=>if_mr_api~get_api
      RECEIVING
        r_mr_api = o_mime_api.
    CALL METHOD o_mime_api->get
      EXPORTING
        i_url              = 'SAP/ZGSD_SD_ADIS/test.gif'
    *    I_CHECK_AUTHORITY  = 'X'
      IMPORTING
    *    E_IS_FOLDER        =
        e_content          = xsourcefile
        e_mime_type        = source_file_mime_type
    *    E_LOIO             =
    *  CHANGING
    *    C_LANGUAGE         =
      EXCEPTIONS
        parameter_missing  = 1
        error_occured      = 2
        not_found          = 3
        permission_failure = 4
        OTHERS             = 5
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    * +++ create ZIP-File +++
    TRY.
        CALL METHOD cl_abap_gzip=>compress_binary
          EXPORTING
            raw_in                     =  xsourcefile
    *    RAW_IN_LEN                 = -1
    *    COMPRESS_LEVEL             = 6
          IMPORTING
            gzip_out                   = xzippedfile
            gzip_out_len               = xzippedcontentlength.
    * ... Länge Casten !
        xzippedcontentlengthstring = xzippedcontentlength.
    * ... Errorhandling
      CATCH cx_parameter_invalid_range . " Error-Handling
      CATCH cx_sy_buffer_overflow . " Error-Handling
      CATCH cx_sy_compression_error . " Error-Handling
    ENDTRY.
    * +++ Put ZIP-File in Response +++
    response->set_data( xzippedfile ).
    response->set_header_field( name  = if_http_header_fields=>content_type
              value = 'application/octet-stream' ).
    response->set_header_field( name  =
    if_http_header_fields=>content_length
              value = xzippedcontentlengthstring ).
    response->set_header_field( name  = 'Content-Disposition'
    value = 'inline;filename=test.zip' ).
    navigation->response_complete( ).
    Thanks Timo
    PS: I posted this question also at ABAP Forum.

    Hi,
    First you need to define your ext prog in SM69.
    It is simple though, specify:
    Command name: ZZIPBIN
    OS: (your os)
    System command: /yourpath/zzipbin
    Extra params allowed: checked
    Then you need to code this:
    data: table TYPE zeu_t_btcxpm.
    CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
        EXPORTING
          commandname                   = 'ZZIPBIN'
          additional_parameters         = param
          operatingsystem               = sy-opsys
          terminationwait               = 'X'
        TABLES
          exec_protocol                 = table
        EXCEPTIONS
          no_permission                 = 1
          command_not_found             = 2
          parameters_too_long           = 3
          security_risk                 = 4
          wrong_check_call_interface    = 5
          program_start_error           = 6
          program_termination_error     = 7
          x_error                       = 8
          parameter_expected            = 9
          too_many_parameters           = 10
          illegal_command               = 11
          wrong_asynchronous_parameters = 12
          cant_enq_tbtco_entry          = 13
          jobcount_generation_error     = 14
          OTHERS                        = 15.
    See also http://help.sap.com/saphelp_nw2004s/helpdata/en/c4/3a8023505211d189550000e829fbbd/frameset.htm
    Eddy
    PS.
    Put yourself on the SDN world map (http://sdn.idizaai.be/sdn_world/sdn_world.html) and earn 25 points.
    Spread the wor(l)d!

  • How to zip multi files into one zip file in ABAP

    hi all:
    As you know, ABAP has CL_ABAP_GZIP class to support zip file function. But it only support one file zip. If I want to zip two files into one zip file, how to do it?
    thanks.

    Hi,
    <li>If you know how to zip one file,  to zip two files , you can follow the below steps.
    DATA:g_zipper     TYPE REF TO cl_abap_zip.
    "create our zipper object
    CREATE OBJECT g_zipper.
    "add 1st file to zip
    CALL METHOD g_zipper->add
       EXPORTING
         name    = file_name
         content = content_x.
      "add 2nd file to zip
    CALL METHOD g_zipper->add
       EXPORTING
         name    = file_name
         content = content_y.
    "save zip
    CALL METHOD g_zipper->save
       RECEIVING
         zip = zip.
    Thanks
    Venkat.O

  • Send mail by zip file format..

    Hi ALL,
    I have a one problem in sending mail through SAP.  I have file with more than 5MB in pdf format, this file i am unble to send. but below 5MB its successfully sending.
    so i m doubt is i have to zip the file, means if that file is more than 5MB.
    please any one tell me for above problem.
    Thanks,
    Srinivas.

    Take a look to the class CL_ABAP_GZIP.
    Regards.

  • Add .txt files into .zip file

    Hello friends,
    Any buddy knows how to add ".txt" files into ".zip" format through the ABAP code. 
    Thanks in advance.

    Hi Murali,
    You can use the method in the class CL_ABAP_GZIP to zip your file and then download it using GUI_DOWNLOAD.
    data: zip type ref to cl_abap_zip,
          result type xstring.
    create object zip.
    zip->add( name = some_file content = content ).
    result = zip->save( ).
    Also you can check this thread as well.
    How to Download data in Zip folder
    Re: UNZIP file from ABAP
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • How to ZIP a PDF File with a Password Protection

    Hi,
    i've a pdf file with created smartforms and i want to assign a password to that pdf file but the SAP doesn't let doing that protection. So i want to create a zip file with a password protection for PDF file.
    How can i create a zip file with a password protection? Can somebody help me please?
    Thanks.

    Hello,
    Check this links
    Take a look to the class CL_ABAP_GZIP
    open (top-)zip-archive
    CALL METHOD lo_zip->load
        EXPORTING
          zip             = lv_zip_file_head
        EXCEPTIONS
          zip_parse_error = 1
          OTHERS          = 2.
    create sub-zip-archives which contain the files you would assign to a folder
    add sub-zip-archive to top-zip-archive
    CALL METHOD lo_zip->add
         EXPORTING
            name    = lv_zip_filename
            content = lv_zip_file.
    save zip-archive
    CALL METHOD lo_zip->save
        RECEIVING
          zip = ev_zip_file.
    ABAP Development
    How to ZIP a PDF file email attachment
    Re: How to ZIP a PDF file email attachment

  • I got a question about compression of files.

    I implemented a file upload and download function in webdynpro abap.
    but I think it's too heavy if there's no compression function.
    So I've been searching the function but i couldn't find it.
    is there anybody who knows the function?
    thank you for reading.

    I solved the problem.
    Thanks
    Regards,
    Jong.
      data: lo_gzip type ref to cl_abap_gzip.
      data: content type xstring.
      data: content_len type i.
    create object lo_gzip.
      node_z009 = wd_context->get_child_node( name = 'Z009' ).
      node_z009->get_static_attributes( importing static_attributes = l_z009 ).
      wd_context->get_attribute( exporting name = 'DATA' importing value = l_z009-data ).
    content_len =  strlen( l_z009-data ).
    lo_gzip->compress_text( exporting text_in = L_Z009-DATA TEXT_in_len = content_len compress_level = 6
                            importing gzip_out = content gzip_out_len = l_z009-len ).
    L_Z009-DATA = CONTENT.
      wd_comp_controller->upload( EXPORTING DATA = l_z009-data LEN = L_Z009-LEN ).
    ANOTHER METHOD
    DATA: LO_GZIP TYPE REF TO CL_ABAP_GZIP.
    DATA: CONTENT TYPE XSTRING.
    CREATE OBJECT LO_GZIP.
    node_temp_z009 = wd_context->get_child_node( name = 'TEMP_Z009' ).
    select * into table lt_temp_z009 from /dogok/009 where id_f = l_z002-id_f and number_f = l_z002-number_f.
    LOOP AT LT_TEMP_Z009 INTO L_TEMP_Z009.
    CONTENT = L_TEMP_Z009-DATA.
    LO_GZIP->DECOMPRESS_TEXT( EXPORTING GZIP_IN = CONTENT GZIP_IN_LEN = L_TEMP_Z009-LEN
               IMPORTING TEXT_OUT = L_TEMP_Z009-DATA TEXT_OUT_LEN = L_TEMP_Z009-LEN ).
    MODIFY LT_TEMP_Z009 FROM L_TEMP_Z009.
    ENDLOOP.
    node_temp_z009->bind_table( lt_temp_z009 ).

  • How to send mail with zip file

    Hi,
    We are sending email in one of our program with an attached xls file. We are sending email using classes (cl_bcs).
    Our requirement is to send the attached file in zip format to reduce the size.
    Please provide if you have any pointers to get zipped file in attachment.
    Regards,
    Mamta

    Dear Mamta,
    Check this class,
    CL_ABAP_GZIP                               --  Class for (De)Compression (GZIP)
    CL_ABAP_GZIP_BINARY_STREAM  --  Class for Data Compression (GZIP, Streaming)
    CL_ABAP_GZIP_TEXT_STREAM       --  Class for Text Compression (GZIP, Streaming)
    IF_ABAP_GZIP_BINARY_HANDLER  --  IF for Output Buffer Handler
    IF_ABAP_GZIP_TEXT_HANDLER      --  IF for Output Buffer Handler
    Regards,
    Surjith

  • XML formatted Email Attachment created by CL_IXML is too big to be received

    Dear all,
    I followed the excellent web blog http://wiki.sdn.sap.com/wiki/display/Snippets/FormattedExcelasEmailAttachment
    to pass an internal table (2MB in size, 18 columns * 6300 rows) to CL_IXML DOM and send this XML file as an formatted Excel attachment, it perfectly works, but the size of this XML attachment exceeded 8 MB, although I reduced it to 6MB successfully by simplying its Cell Attribute from
    <Cell ss:StyleID="s62"><Data ss:Type="String">1E2</Data></Cell>
    TO                    <Cell*><Data ss:Type="String">1E2</Data></Cell>.
    but I cannot do the same on its Data Attribute, and it is still too big to be received by the mailbox of my third party users, is there any way to reduce it below to 3MB?
    we need the attachment to be formatted Excel, and cannot request my third party receiver to do anything in Excl.
    I am using ECC 6.0, 32 bit no-unicode, and SAP Gui 7.20.
    looking forwarding to your reply
    Peter Ding

    You can try zipping the file and send it as attachment.
    Use the FM SCMS_XSTRING_TO_BINARY to convert the XML to Binary. Do the ZIP using the method COMPRESS_BINARY of the class CL_ABAP_GZIP.
    Regards,
    Naimesh Patel

  • Zip file out of binary (xstring)

    Hi,
    I try to compress (zip) binary data (for example a picture) and then give it to a html page. I use the cl_abap_gzip=>compress_binary method and it seems to work. But when I save the zip-file to harddisk over the popup at the html - page, the file could not be opened. WinZip says that it is an unvalid archive.
    Can anybody help me?
    Here my example coding at the OnInitialization Event of the business server page:
    * event handler for data retrieval
    * local variables
    DATA: xsourcefile TYPE xstring.
    DATA: xzippedfile TYPE xstring.
    DATA: source_file_mime_type TYPE string.
    DATA: xzippedcontentlength TYPE i, xzippedcontentlengthstring TYPE
    string.
    * References
    DATA: o_mime_api TYPE REF TO if_mr_api.
    * processing
    * +++ Read File from MIME-Repository (binary) +++
    CALL METHOD cl_mime_repository_api=>if_mr_api~get_api
      RECEIVING
        r_mr_api = o_mime_api.
    CALL METHOD o_mime_api->get
      EXPORTING
        i_url              = 'SAP/ZGSD_SD_ADIS/test.gif'
    *    I_CHECK_AUTHORITY  = 'X'
      IMPORTING
    *    E_IS_FOLDER        =
        e_content          = xsourcefile
        e_mime_type        = source_file_mime_type
    *    E_LOIO             =
    *  CHANGING
    *    C_LANGUAGE         =
      EXCEPTIONS
        parameter_missing  = 1
        error_occured      = 2
        not_found          = 3
        permission_failure = 4
        OTHERS             = 5
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    * +++ create ZIP-File +++
    TRY.
        CALL METHOD cl_abap_gzip=>compress_binary
          EXPORTING
            raw_in                     =  xsourcefile
    *    RAW_IN_LEN                 = -1
    *    COMPRESS_LEVEL             = 6
          IMPORTING
            gzip_out                   = xzippedfile
            gzip_out_len               = xzippedcontentlength.
    * ... Länge Casten !
        xzippedcontentlengthstring = xzippedcontentlength.
    * ... Errorhandling
      CATCH cx_parameter_invalid_range . " Error-Handling
      CATCH cx_sy_buffer_overflow . " Error-Handling
      CATCH cx_sy_compression_error . " Error-Handling
    ENDTRY.
    * +++ Put ZIP-File in Response +++
    response->set_data( xzippedfile ).
    response->set_header_field( name  = if_http_header_fields=>content_type
              value = 'application/octet-stream' ).
    response->set_header_field( name  =
    if_http_header_fields=>content_length
              value = xzippedcontentlengthstring ).
    response->set_header_field( name  = 'Content-Disposition'
    value = 'inline;filename=test.zip' ).
    navigation->response_complete( ).
    Thanks Timo

    I was on vaca, sorry for the late reply.
    I can't see the video card but from what I see on the rest of the spec, those stats are extremely low.
    An OS (especially modern) consumes 700~1GB RAM itself. Depending on the video cards amount of RAM, if it requires using RAM, you already only have around 1GB to share. So your hard disk will be thrashed on a system like that struggling to keep RAM managed.
    The CPU is very slow, in the value line. You can look on several sites which measure various components to see where you fall for performance. For example, Passmark (fairly reliable at quick glance) puts your CPU in the mid to low (value) range and has a score of 808. A mid to high end, standard CPU these days (~$300 range) is around 10,000 and above:
    http://www.cpubenchmark.net/midlow_range_cpus.html
    1.7GHz is pretty slow and without any Intel-esque turbo boost, the CPU is really going to be sluggish.
    I would say that laptop is designed to read email and surf the web. I think it would even struggle to play HD video, let alone render real-time modern Canvas 2d animation with any level of consistency. If you do "anything else" while the animation happens, or if the animation is fairly layered, this machine will bog down. It should be entirely visible in your task managers performance tab. Most likely you'll see the CPU peg out at 100% and memory not far behind it. Take a glimpse.
    I think your entire issue is that computer, not CanvasJS/EdgeJS differences.

Maybe you are looking for

  • How do I get my old itunes data and library into my new computer

    I recently bought a new laptop (10.7.5) and had to leave town quickly. I dumped my Itunes folder from my old machine onto an external hard drive and now I don't know how to get that all into and onto the new laptop. I think I would like to keep the 

  • Game center id used by another one though i had change my apple password...

    My game center id used by another one. after that i changed my password. but he is still operating my game center account. i just knew it when i go to play my game Clash of Clans and my exp is 114 now...he is giving a lot of bad words by using my gam

  • Can i get an iphone 4 from UAE and use it in Egypt ?

    hey guys, all i want to know is that can i buy an iphone 4 from the uae without any plans or sim or contract or any activation ... and then activate my iphone with an Egyptian service provider in Egypt without any need of special activation or someth

  • Import to Final Cut X

    I am trying to determine what the location of Final Cut X storage should be, but it wants to use the same disc as the applications (which I use as a system drive). iMovie allows me to store data on the dedicated drive on my MacPro, but Final Cut Pro

  • Access data sources supporting Tuxedo

    WLS 5.1 states that it does not support two-phase commit. In fact, if I try to establish two connections to different Oracle databases within the same entity bean or session bean within a transactional context then an exception is thrown. I need to p