How to extract a file ZIP (structure records incl.) worldwide RIM of JavaAPI - anyone tried it?

Hello

any of you have ever tried to write code, that can extract a ZIP file that contains several files? I ask because in the JavaWorld, it is quite a simple task (using the file zip (or ZipInputStream) and ZipEntry)...

Now, I wanted to do the same thing in my BB Application - and I realize now that there is no equivalent to ZipEntry... and provided him GZInputStream & ZLibInputStream are 'just' capable of files unique handle [but not including file archives].

So my question is, is there someone who has always tried to extract a ZIP on the BB with the RIM API? And if so could you help me... or even better is a sort of LIB (jar) that can be used?

TIA

Matthias

just for the records (if someone else is looking for it) - there is a GNU zipME lib:

http://sourceforge.NET/projects/zipme/

Tags: BlackBerry Developers

Similar Questions

  • Automator - how I got a file zip "with replacement"?

    Automator - how I got a file zip "with replacement"?

    I have an action that selects a folder - then creates archive in a chosen folder

    Currently - it uses the name of the source folder, and then brings new archives every time as:

    My folder.zip

    my zip 1 file

    My 2 zip. folder

    I wish there was only a single zip and the new version would ALWAYS OVERWRITE the old.

    Q: How can I get what's going on?

    or how to do that with applescript?

    Hello

    In an Automator workflow, you can use this script in "run AppleScript" action.

    ----

    on track {, parameters} - script for Automator

    -create an archive in the parent folder, it uses the name of the folder, it overwrites one archive existing and returns the path of the archive

    return fileZipper (item 1 of the entry) - entry is a list and it contains the path of the folder

    end of race

    on fileZipper (thisItem)

    tPath thisItem text value

    If tPath ends by ":" and then

    the value text delimiters oTid point

    the value point text delimiters {"": "}

    tPath the text value 1 through the text element - tPath 2

    the point text delimiters oTid value

    end if

    zip (tPath & ".zip") the value as a text file

    shell script "/ usr/bin/Ditto - c k - rsrc - keepParent" & (quoted in the form of tPath POSIX path) & "" & quoted form of POSIX zipFile path ".

    return the zip as an alias file

    end fileZipper

    -----

    This script create a new archive or overwrite an archive existing with the same name as the folder.

    The destination is the parent of the selected folder.

    If you want to move this archive to a specific folder, add "move Finder items" action after the action "Run the AppleScript.

  • Error message during extraction of files zipped

    When extracting the files in a compressed folder, I get the following error. Please notify.

    Error 0 x 80010135: path too long

    Try to drag the file from the ZIP to your desktop instead.  This is a short path that must be allowed.

  • How to extract a file path is too long

    I can't extract a file because it is too long.  It has the error code 0 x 80010135.  How can I fix?

    Karen McIntyre

    E-mail address is removed from the privacy *.

    Hello

    ·         What file are you trying to extract a file?

    I suggest you follow the link below and check out them.

    http://social.technet.Microsoft.com/forums/en-us/w7itprogeneral/thread/7311832b-6d85-43a4-A305-8ec676f4fb51

  • How to extract the files from the HARD drive?

    I have a HDD1805 from a broken iPod 80 GB. I was wondering if there was another method I could use to extract the files from the hard drive.

    Hello

    Sorry, but I don t know what you mean exactly.
    Can you please explain exactly what you mean?

    What files you want to extract?

    Good bye

  • How to extract a file 'save '.

    I have a need to extract a file 'save' - what is the best procedure to follow?  Thank you.

    Hi John,.

    ·         Do you have a backup file you want to restore?

    ·         What software did you use to back up files?

    If you used the Windows backup utility, you can read the following article.

    Microsoft Windows XP: restoring files and folders

    Do not respond with more information, if this isn't what you're looking for.

  • How to insert the file between the records in the database file

    Hi, I'm working on the project in which I need reading / writing of .mdb file. I am able to write data to the file, but I am not able to write data between two records. It's that I have to insert a few lines of data between the records in the file.

    Can someone tell me how to do? I really stuck with this problem.

    vaibhav

    Thank you
    In fact it was the problem with version 8.5.
    When I installed 8.5.1 it solved.

  • How to extract all files inside BMP. Dir file?

    Dear friends,

    I'm not a graphic designer or developer, but I'm stuck with me boss job.

    He had an old cd with photos, HE gave it to me to export all the images in the file.

    It has been. CRT file, I was able to convert to file DIR at the end. The file opens perfectly in Adobe Director with any framework or script inside but

    There are 900 pictures inside.

    I can't copy paste the 900 files in order to paint or to save them one by one.

    Alll 900 files are located in the internal cast now.

    Please help me to solve this problem and treat me like a kid, would you please guide me step by step and send me the link of xtra to serve as appropriate.

    I promised him tomorrow I'll give him the pictures, please help.

    Thank you and best regards,

    1. Download the ImgXtra from the site of Valentin Schmidt here: http://www.dasdeck.de/staff/valentin/xtras/image/win/d10/
    2. FreeImage.dll files and ImgXtra.x32 package compressed in the demand of the Director Xtras folder *.
      * Note: If ongoing D10 then it is somewhere like: C:\Program Files\Macromedia\Director MX 2004\Configuration\Xtras\
    3. Open your .dir file and add this moviescript:
    on saveImages savePath
      retVal = 1
      -- check savePath
      if (not stringP(savePath)) and (not savePath contains "\") then
        retVal = -1
        return retVal
      else
        if the last char of savePath <> "\" then
          savePath = savePath & "\"
        end if
      end if
    
      -- create instance of ImgXtra
      imgObj = xtra("ImgXtra").new()
    
      -- iterate through the Internatl Cast
      -- and save as bmp using the member name,
      -- or if empty then "member_#"
      m = castLib(1).member.count
      repeat with i = 1 to m
        if member(i, 1).type = #bitmap then
          fName = member(i, 1).name & ".bmp"
          if fName = ".bmp" then fName = "member_" & i & ".bmp"
          put "savePath: " & savePath & fName
          ixErr = imgObj.ix_saveImage(["image":  member(i, 1).image, "filename": savePath & fName, "format": "BMP"])
          if ixErr = 0 then
            retVal = -2
          end if
        end if
      end repeat
      -- destroy instance of ImgXtra  imgXtra = 0 
      return retVal
    end
    

    4. run from the window of the message, something like this:

    ERR = saveImages (the moviePath & "images")

    ERR will be a return value of 1 on success, a negative not... you can do to get the value in the message window:

    Put err

    the moviePath is the path to the .dir file and 'pictures' are to a subfolder in the folder where the file .dir. adjust accordingly, for example the path. "C:\Images" or a path valid where you want the exported images to be saved.

  • How to extract zipped files from external hard drive?

    I saved the content of my HP laptop, the HD is made horrible noises of an external HD.  How can I extract the files zipped to another HP laptop?

    See this page

    http://support.HP.com/us-en/document/c01900516

  • How to extract a ttf from file file have this software? Please, help me and show the steps.

    Hello

    Please suggest me how to extract the file 'TTF' to a 'HAVE 'file with the help of the adobe Illustrator?

    Thank you

    Ankit Chugh

    988885156

    [email protected]              

    Ankit,

    "" "" "" but now let's look at the other face, assuming that we do not have the fonts in our machine and we will always look for file HAVE, so we have to buy these fonts, am I right on this point, I want to just be confirmed in this regard.? "" » »

    Yes, this is the case.

    You can use the file HAVE to is to establish the names of the fonts, as it appears in I like you did as shown in your #10 post, so you can buy (or just download them if they are free fonts).

  • How to: repair corrupt files that were found with SFC

    Hello, I am working with a laptop Dell Inspiron 1720.  Operating system is Vista SP2.  Got the black screen of death on the desktop and can not use Windows Explorer or configuration panel.  A ran CHKDSK, which does nothing to solve the problem.  Then ran SFC Scan with command prompt Admin, it stops at 68% indicating that tour corrupted files Windows and cannot fix them.  System Restore has 4 available dates too, but I get an error for all 4 code dates 0x800423F3.  I called Dell, they said that they suspected a virus even if the computer is running Microsoft Security Essentials, updated virus definitions & analysis each week.  I am at one loss for what else to do, Microsoft don't think it's the virus, Dell, and both want to charge their famous contribution.  Any suggestion would be greatly appreciated as a complete reformat is really, really not an option at this time.  Thank you

    Hello

    You can retrieve the files one at a time on the disc.

    Access files on your Vista installation DVD
    http://www.Vistax64.com/tutorials/86959-access-Vista-install-DVD-files.html

    How to extract system files missing from the DVD of Windows 7/Vista.
    http://blog.NirSoft.NET/2009/09/17/how-to-extract-missing-system-files-from-the-DVD-of-Windows-7vista/

    ------------------

    or try an in Place upgrade/repair Installation what allos you to keep programs and
    Although redundant data backups are always a good idea.

    You can use another DVD that aren't copy protected but you you need to own
    Product key. It must be the same version 32 or 64 BIT Vista OEM. Also the system
    machine to usually sell the cheap disk since you already own Windows. Don't forget to make a
    good backup or 3 (security in redundancy).

    On-site upgrade
    http://vistasupport.MVPs.org/repair_a_vista_installation_using_the_upgrade_option_of_the_vista_dvd.htm

    This tells you how to access the System Recovery Options and/or a Vista DVD
    http://Windows.Microsoft.com/en-us/Windows-Vista/what-happened-to-the-recovery-console

    How to perform a repair for Vista Installation
    http://www.Vistax64.com/tutorials/88236-repair-install-Vista.html

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • How to check the file for the virtual machine size Esxi shell

    Anyone who can tell me how to check the file for the virtual machine size Esxi Shell. I tried this command-h ls but does not work.

    Have you checked "ls-lh', it will provide information as the attached screenshot." "

  • How to extract more than a records from xml file

    I want to extract several records in the xml file

    Now, I'm able to extract only one record at a time
    using the

    Select xmltype(transaction_document).extract('//IrcPostingContentsVlEORow/CreationDate/text()').getStringVal (CreationDate)
    of hr_api_transactions
    where transaction_ref_table = 'PER_ALL_VACANCIES. '
    and transaction_ref_id = 4693;
    How can I find or retrieve multiple records?

    Hello

    and appear in several places in the document, please be specific.
    Ideally give the full path to access the data.

    It goes the same for : want you PerRequisitionsEORow or PerAllVacanciesEORow?

    Here's an overview of what you can do, assuming that you want the data from the PerAllVacanciesEORow element:

    select x.*
    from hr_api_transactions t,
         xmltable('//PerAllVacanciesEORow'
                  passing xmltype(transaction_document)
                  columns requisition_id  number        path 'RequisitionId',
                          organization_id number        path 'OrganizationId',
                          name            varchar2(100) path 'Name',
                          creation_date   varchar2(30)  path 'CreationDate'
                 ) x
    where t.transaction_ref_table = 'PER_ALL_VACANCIES'
    and t.transaction_ref_id = 4693
    ;
    
    REQUISITION_ID ORGANIZATION_ID NAME                 CREATION_DATE
    -------------- --------------- -------------------- -----------------------
              7471                 yogesh               2011-01-29 20:01:57.0
    
  • How to extract a zip file in the specific directory?

    I would like to schedule for download and extract the following files zipped directory specifice.

    Anyone have any suggestions on any approach to do this?

    Thanks in advance for your suggestions

    http://www.tradingblox.com/data/DataOnly.zip

    http://social.msdn.Microsoft.com/forums/en-us/scripting/threads

  • How to 'Extract all' you should see when I right click on a zip file?

    When I right click a compressed file (zip), the command "extract all" does not appear. What I get is a message to Adobe Reader that says:

    "Adobe Reader could not open the attachment because it is not a type of file supported or because the file has been damaged." For all attachments in zip file, I get the same message. Why is this and what can I do about it?

    Oil dipstick

    It could be the problem with the associated application of type of .zip file. Check if .zip is associated with Adobe?

    In Windows 7 and Windows Vista you can check the file type as this.

Maybe you are looking for

  • How to add manual iOS app health data?

    I use Apple Watch series 1 with Watch OS 3. Very useful for me has been adding data to guide health app. Now with OS3 shows, I couldn't find these options. Can someone help me in this case? Thank you, Michael

  • iPADs repeat network WPA2 Enterprise authentication

    Hi all I have the following problem with our network wireless company. We are able to connect to our network wireless with iPad and iPhone successfully. But with the iPad when you leave the office and come back a few hours later he asks for to re-aut

  • HP ENVY 17-j113tx n TouchSmart: missing device Bluetooth Device

    Hi guys,. I lowered my Windows 10 laptop to Windows 7, and the bluetooth driver is just completely messed up.  I am unable to pair my phone with the laptop (used to run on Windows 10), cannot share internet from the phone via bluetooth, unable to con

  • HP 1000 - 1432TU: Animation of the fn on HP 1000 - 1432TU

    Hello Forums HP...I use HP 1000-1432TU laptop computer with Intel Celeron processor and just re install Windows Home Premium 64 - Bit.My keyboard works fine, also fn Key. I can adjust brightness and sound volume with the key, as Wifi switch.But I can

  • Error-200524 when you try two analog output voltage signals

    I am train to the output of two signals to analog voltage simultaneously using Labview 8.2.1. One is a waveform to produce sound, and the other is a trigger on another computer (using labview 6.1). I've been doing error-200524 write DAQmx. Here is a