Unzip files from SDCARD

HI,
i am trying to unzipping files from external sdcard..
i am using zipme.jar, but when i am deploying this application it give error.
please nay one hep me to unzipping files using 3rd-party jar

But my question is that if in a source folder we have several files which are in zipped format and the folder is getting updated every min (say) with new zipped files (which are dumped from some outside environment).I need to unzip all the files present in the folder ,if new one comes there then also check for the new zipped file and unzip it.You don't need to keep re-stating that.
I had written a code for unzipping a file from a folder (thinking the folder is not updated everytime).Or that.
Now I am thinking of using threads because if I create suppose 5 threads and every threads poll the source folder and pick up a zip file ,send it for unzipping it and again poll the source folder for any new entries?Or that.
If using the threads here hits performace then what should I use?Err, what you presently have?
Provide me any sample code or link that would be more useful.You've already written it.

Similar Messages

  • UNZIP file from ABAP

    Hi,
    I have a requirement to retrieve a zip file from the FTP Server, unzip it to the SAP Server and process the unzipped files. Retrieving the data from the FTP server should work via FTP commands which can be executed from within an ABAP program. However, the problem is unzipping these files via ABAP and put them on the server as well. 1. How to do this from within an ABAP Program? (unix commands?)
    2. Can I unzip these files with or without using the folder structure? (additional parameter for unix command?)
    Kind regards,
    Micky.

    REPORT ZTESTUNIX line-size 400
                    no standard page heading.
    selection-screen begin of block ucmd with frame title text-001.
    parameters: unixcom like   rlgrap-filename.   " ...SAP Interface file
    selection-screen end of block ucmd.
    data: begin of tabl occurs 500,
            line(400),
          end of tabl.
    data: lines type i.
    start-of-selection.
      refresh tabl.
      call 'SYSTEM' id 'COMMAND' field unixcom
                    id 'TAB'     field tabl[].
      describe table tabl lines lines.
      loop at tabl.
        write:/01 tabl-line.
      endloop.
      skip 2.
      if lines = 0.
        write:/ 'NO Occurances were found'.
      else.
        write:/ 'Command was successfully executed' color col_total.
        write:/ 'Number of entries in Search' color col_total,
                 lines color 6.
      endif.
    end-of-selection.
    while running give the command as
    <b>unzip test.zip  -x dir</b>
    then it will unzip test.zip file to dir called dir.
    you can specify the filepath instead of file...
    regards
    vijay

  • Unzip file from froms then load

    i have form (basically called loader) which read text file and then load it in data base.
    Now,there is a user requirement that if text file is in zip format then he can unzip file using form.
    Any idea how to do this can some unzip software used at back end.
    I mean any idea any suggestion is required.
    Forms 6i i am using.

    The zip.exe and unzip.exe are shipped with Oracle products, they are found under %ORACLE_HOME%/bin
    just type zip or unzip in a command line session and you'll get all the switches and details.
    Judging from your first post I understand you are running in C/S mode, if not you need to use CLIENT_HOST from webutil instead of HOST. It's the same concept.
    As for HOST built-in example, I told you, there are very nice and detailed examples in the online help of Forms builder.
    Open Forms builder and either press Ctrl + H or click on the big blue question mark, or open help menu and click on "Online Help".
    Tony
    Message was edited by:
    Tony Garabedian

  • Unzip files from a folder which is updating regularly using multithreading

    Hi All,
    I have acode which unzip all the files from a folder .This code picks up all the zipped files at a time and then unzip it and write them to another folder but now my requirement is changed ,suppose the source folder where all the zipped files are present is refreshed or updated with new zipped files regularly then how can I implement in my code multithreading to get several files by threads and send it for unzipping.
    Please suggest with some example or edit my code.
    package com.myprojcet;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.OutputStream;
    import java.util.zip.ZipEntry;
    import java.util.zip.ZipInputStream;
    public class Main {
         * Extracts a zip file
         public void extractZipFile() {
              try {
                   String zipFileName = "C:\\soft\\test"; //Source folder for zipped files
                   //Create input and output streams
                   File SourceDir = new File(zipFileName);
                   File[] zipFiles = SourceDir.listFiles();
                   ZipInputStream inStream = null;
                   OutputStream outStream = null;
                   ZipEntry entry;
                   byte[] buffer = new byte[1024];
                   int nrBytesRead;
                   //Get next zip entry and start reading data
              for(int i=0; i < zipFiles.length; i++) {
                   inStream= new ZipInputStream(new FileInputStream(zipFiles));
                   while((entry = inStream.getNextEntry()) != null) {
                        outStream=new FileOutputStream("C:\\soft\\test2\\"+entry.toString()); //destination folder for unzipped file
                        while ((nrBytesRead = inStream.read(buffer)) > 0) {     
                             outStream.write(buffer, 0, nrBytesRead);
                   //Finish off by closing the streams
                   outStream.close();
                   inStream.close();
              } catch (IOException ex) {
                   ex.printStackTrace();
         * @param args the command line arguments
         public static void main(String[] args) {
              new Main().extractZipFile();
    Thanks
    Sumit
    Edited by: user8687839 on Feb 27, 2012 11:00 PM

    But my question is that if in a source folder we have several files which are in zipped format and the folder is getting updated every min (say) with new zipped files (which are dumped from some outside environment).I need to unzip all the files present in the folder ,if new one comes there then also check for the new zipped file and unzip it.You don't need to keep re-stating that.
    I had written a code for unzipping a file from a folder (thinking the folder is not updated everytime).Or that.
    Now I am thinking of using threads because if I create suppose 5 threads and every threads poll the source folder and pick up a zip file ,send it for unzipping it and again poll the source folder for any new entries?Or that.
    If using the threads here hits performace then what should I use?Err, what you presently have?
    Provide me any sample code or link that would be more useful.You've already written it.

  • Unzip files from FTP using  ABAP

    Hi All,
    I have the a requirement to unzip certain files from ftp and transfer the extracted files to another directory in ftp.
    Searched  (Re: Unzip file;)  in SDN but didnt find the perfect solution
    Appreciate the help.
    Regards
    Siva

    You can use IndexOf function
    see this example
    http://visakhm.blogspot.in/2012/05/package-to-implement-daily-processing.html
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Unzipping files from a zipped folder

    Hi,
    I need unzip files stored in .zip folder using ABAP. Could you please tell me of a utility/Funtion Module or any other method which exists for the same?
    Thanks a lot
    Shujath

    Hi Mohammed,
    you just have to execute an external program from your ABAP.
    For example, if the ZIP file is in the client computer you have to use the WS_EXECUTE.
    Have fun
    Frédéric

  • How to unzip files from my pc using my macbook

    I transfered some of my files over from my pc into my macbook and I was wondering how do you unzip them in my macbook?? What program am I suppose to use?

    Get Stuffit Expander.
    http://www.macosg.com/group/viewtopic.php?t=5659&highlight=stuffit+expander
    -Bmer
    Mac Owners Support Group
    Join Us @ MacOSG.com
    iTunes: MacOSG Podcast
     An Apple User Group 
    Disclaimer required by Apple Discussions Terms of Use: MacOSG - a non-profit Apple User Group - may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • Reading a Txt file from SDCard...advise sought.

    Hey,
    Just a quick post to see if any of you kind people would be able to help me out here. I'm intending to have a database (simply perhaps as just text in a .txt file) stored on my SDCard on my Palm and want to be able to read in that file and in turn check the data. I'm not sure in which the best way to go about this using File Connection reader.
    I can already browse the SDCard via my app, but I want to be able to have decisions based on the data within the file, such as updating choicegroups based on the contents.
    Is there anyone out there with advise, or know's of link's to Tutorials/Sample Code/etc which might be of help?! Thanking you sooooo much in advance.
    Regards,
    Cam

    Thanks!
    Is there any kind of Import I should use with this code that with out might throw up these errors: Heh. I tried integrate that into my code you see, to a certain extent...!!
    Building "Project"
    h:\wtk\Project\src\Project.java:405: cannot find symbol
    symbol : variable read
    location: class javax.microedition.io.Connector
              FileConnection fc = (FileConnection)Connector.open("file:///SDCard/actype.txt",Connector.read);
    ^
    h:\wtk\Project\src\Project.java:406: java.io.InputStream is abstract; cannot be instantiated
                   InputStream is = new InputStream(fc.openInputStream());
    ^
    h:\wtk\Project\src\Project.java:407: cannot find symbol
    symbol : class StringBugger
    location: class Project
                   StringBugger sd = new StringBuffer();
    ^
    h:\wtk\Project\src\Project.java:411: cannot find symbol
    symbol : variable sb
    location: class Project
                   sb.append((char)ch);
    ^
    4 errors
    com.sun.kvem.ktools.ExecutionException
    Build failed
    Not cool :(!
    Thank's in advance!

  • PE 13 Does Not Delete Files From SDCARD or Camera When Importing

    I recently updated from PE 12 to PE 13.  Now, when I import pictures, even though I use the option to Verify and Delete files, it never asks and never deletes any files.  I tried changing the setting and changing it back but that doesn't help.
    If you are responding, please don't tell me not ot use this option.  I have been using it since PE 1 and never lost anything.  I know how to recover from any problems that may crop up.  I know many of you don't trust PE and always save the SD card until you have verified the contents of the library and backed it up but that's way too much trouble for me.

    This quote is from MS Outlook 2003 for Windows, Outlook is now available for Mac, I think you have to purchase Offiice though.
    If you don't mind that it may still be available in Outlook for Mac. you would need to check. Sorry about the font, just copied and pasted. Look under POP3 accounts
    http://office.microsoft.com/en-gb/outlook-help/leave-e-mail-messages-on-your-e-m ail-server-HA001150793.aspx
    Quote "
    Remove from server when deleted from 'Deleted Items'     E-mail messages are downloaded to your computer but also remain on the e-mail server indefinitely until you delete the e-mail message in Outlook and empty the Deleted Items folder. Just deleting the message doesn't remove the message from the e-mail server.

  • How To Unzip files from Compress Zip Archive Folder?

    Hi Friends,
    I had compressed my docx files or images files in zip folder last month but unfortunately that folder has corrupted or damaged due to malware infections. But I am not
    sure about that what reason behind of zip file get corrupt and inaccessible. If anyone knows about such tools which repair corrupt zip files quickly then shares with me that software information detail.
    Thanks

    Also, the Microsoft Community/Answers forums might be of help. We cannot move this question there but I got these hits there when I searched on "repair zip":
    http://answers.microsoft.com/en-us/search/search?SearchTerm=repair+zip&CurrentScope.ForumName=&CurrentScope.Filter=&ContentTypeScope=&x=0&y=0
    Or you can ask here (select your OS):
    http://answers.microsoft.com/en-us/windows/forum/files?tab=Threads
    Richard Mueller - MVP Directory Services

  • Cannot unzip any of the files from the download section

    Hello,
    has anyone tried unzipping files from this section?
    http://www.oracle.com/technetwork/developer-tools/forms/downloads/index.html
    I am on Windows 7 and I also have 7zip and none of them can open the files, message says - invalid zip file.
    I am mainly interested in this file: ofm_frmrpts_win_11.1.2.1.0_32_disk1_1of1.zip
    Any clues?
    Regards,
    Ryszard

    I already did twice, I think Firefox is terminating the download without any message. When I use IE it said your download has been terminated after downloading 700M out of 1.79G. I have absolutely no limits, the only thing I can suspect is the Oracle session is timing me out. I managed to re-establish the connection and resume the download, which I can't seem to be able to do with Firefox.

  • Cannot unzip the image file from Sun

    I have downloaded the first compressed install CD image file from Sun. But it cannot be unzip. I used almost all of the unzip software(such as Winzip, WinRAR, PKUNZIP for DOS and for Windows).
    Anybody can help me?

    OK! I downloaded for the 5th time without using GetRight and I can now unzip the file in question. For some reason GetRight chokes on this zip file only. All of the other images were downloaded using GetRight and they unzipped just fine. Go figure...
    My reccomendation to anyone else using a download tool like GetRight and having the same problem is to disabled the tool temporarily and just do a normal download through your browser.
    Hope someone finds this useful.
    Bob C.
    Make that another ditto!!! I have downloaded the
    first CD image for x86 Solaris 4 times now. Each time
    the download has succeeded without error, but I can
    not open the zip file. I have been using GetRight 4.3
    to do the download rather than straight FTP or HTTP so
    maybe this is the issue, but I have never had a
    problem using this tool before.
    Help anyone!?!?!?!
    Bob C

  • Unzipping downloaded files from Oracle

    Which program must be used to unzip the downloaded files from Oracle??
    I've run the batch file which creates the zip files, but Winzip doesn't recognize them.
    Help Please!!
    Thanks,
    Rick

    Just as a note, (I don't know if it will help you) After executing the batch file (especially for disks 1 & 2) it takes several minutes to complete the creation of the "single disk" zip file. And if you don't let it complete, winzip will not recognize it. The batch file will echo each steps completion, however the first echo takes a while to display, so it's easy to think that nothing is happening. I know I fell for it. So, try executing and then going for some coffee or something.

  • How do I get a download zip file from firefox to my desktop

    I download zip files from different web sites and they go to the download folder in firefox, but I can't access them to open,unzip, or work with them on my computer offline. How can I move them from the download folder in firefox to my computer desktop?

    Hi,
    In order to open ZIP files, you have to download an app to enable the opening of the ZIP. Here's one you can use: https://play.google.com/store/apps/details?id=com.winzip.android
    Next, when you install that, open it and go to your Download directory. It should either be in sdcard0, sdcard, or sdcard1, then go to Download.
    Once you find it, touch and hold the file, then click '''Unzip here''' and it will extract the files in the ZIP folder.
    Let me know if this works!

  • Issue while sending a zipped file from ABAP to JAVA layer

    Hi All,
    I have a requirement wherein i have to zip a xml file in abap, convert it to base64 encoded string and send it to JAVA layer.
    I'm using the class CL_ABAP_ZIP for zipping the xml string and FM "SCMS_BASE64_ENCODE_STR" to convert the zipped data to base64 encoded string.
    But on the JAVA layer we get an exception while unzipping this data.
    Has anybody come across a similar situtation.
    Please help.
    Regards,
    Ankit Agrawal

    Example
    REPORT  Z_PAP_UP_ZIP_DL.
    DATA: L_ZIPPER TYPE REF TO cl_abap_zip.
    DATA: FILEX type XSTRING.
    DATA: FILENAME type string.
    DATA: PATH type string.
    DATA: zip type xstring.
    DATA: FILE_N_TAB type FILETABLE.
    DATA: FULL_PATH type string.
    DATA: FILE_LENGTH type i.
    DATA: FILE_TAB type w3mimetabtype.
    DATA: WA_INT type int4.
    DATA: PATH_TABLE TYPE TABLE of char1024.
    "    Load the file
    "Which file to upload
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
      CHANGING
        FILE_TABLE              = FILE_N_TAB
        RC                      = WA_INT
    "load the (first) file from the frontend the user has selected.
    LOOP at FILE_N_TAB into FULL_PATH.
    "get the file
      CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD
         EXPORTING
           FILENAME                = FULL_PATH
           FILETYPE                = 'BIN'
        IMPORTING
          FILELENGTH              = FILE_LENGTH
        CHANGING
          DATA_TAB                = file_tab.
        exit.
    endloop.
    "create xstring from table
    CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
      EXPORTING
        INPUT_LENGTH       = FILE_LENGTH
      IMPORTING
        BUFFER             = FILEX
      TABLES
        BINARY_TAB         = file_tab
    "get the name of the file. we take entry after the last '\' ...windows.
    SPLIT FULL_PATH AT '\' INTO TABLE PATH_TABLE.
    DESCRIBE TABLE PATH_TABLE LINES WA_INT.
    READ TABLE PATH_TABLE INTO FILENAME INDEX WA_INT.

Maybe you are looking for

  • Error while Activating Inventory record in WM

    Hi All, I am getting an error while activating Inventory record using LI02N ,The Inventory record has been created using LICC Cycle Inventory at Quant Level.The error detrails are as below: Message Text: Function code cannot be selected Technical Dat

  • Error shown when try to open a report in 11.1.1.5.0 environment

    Hi experts The version of the environment is 11.1.1.5.0 Customer is encountering the following issue, when he use weblogic user to login and try to open a publisher report, he will get the following error message. and the URL is http://128.1.100.90:9

  • Excel Upload in Publisher

    Hi Experts, Is it possible for me to upload an excel through publisher. I have seen the option of Upload report in publisher.I can upload only .xdo and .zip files. I waant to know wht is this .xdo file. Can i modify this file to upload an excel. Appr

  • Over picking not allowed for L_TO_CREATE_DN

    Hi experts, Can anybody help me doing over picking of delivery quantity when creating TO using BAPI L_TO_CREATE_DN ? My requirement is such that: Create a TO  with 300 quantity against a delivery number that having 200 quantity and I need to set "Ado

  • Weeks and Months roll-up in Time dimension

    We need to change our Time dimension roll-up ('Total Year' 'Quarter' 'Month') as some users want to see the week level as well. What is the best way to do that? I still want to use the DTS and both need to be Time dimension. Thanks for your reply.