Creating a ZIP file

Hi all

is any available library to create a zip / compressed file on the BB?

Thank you for supporting,

Good day.

Mike

I'm sure threre is open somewhere source, but this is not currently part of the RIM API.

You * can * create a file compressed GZIP using GZIPOutputStream.

Tags: BlackBerry Developers

Similar Questions

  • error 42 when creating a zip file

    Hello

    I get a 42 error when I try to create a zip file in Labview.  I am deploying to a PSC module.  I try to create the file, and then my loop will close a data file when it gets to 1 meg and add it to the .zip file open and open another file of data.

    I can't test the part until I can open a zipfile first.  Seems that I do not know how to specify a path? My way, that I use for the data file is "c:\k2XXXX.dat" with XXXX being the graduations to current.  And the zip that I use is "c:\K2data.zi" why does this job with creating zip file VI?  I use the vi path string.

    Thank you

    Hello Zener,

    Please contact National Instruments!  I've seen this error before when using the ZIP screws on a controller of the PSC.  Unfortunately, this error occurs because the ZIP screws are dependent on Windows and are not supported by the operating system in real time. We are working to make these changes to the range of functions in real time.  I'm sorry for the inconvenience.  If you do not need to use the ZIP screws, then you should be able to transfer the data to a host computer and then call the screw ZIP from here.  If you have other questions about this please just after them here and we will help you.  Have a great day!

  • Error: Windows backup could not create a zip file.

    I installed Windows 7 RC.  Installation went well, system runs quickly with no problem except when I try to perform a backup.  Seems to work at the end of the backup, and then fails with the error message «Windows backup to create a zip file» could not  «This could because the reader what is installed on Windows isn't a not enough space or it could be a temporary error.»  Make sure you have at least 400 MB of free space and try again' drive Windows is installed on has 163 GB of free space.  I tried several time backup on a separate internal drive > 300 GB of free space and a NAS drive (> 1.5 TB of free space with the same error message).

    Hi mhgreene,

    Thanks for posting "Preparation for Windows 7" community forum.

    Of after the information provided which happens usually not, is that the system tries to write to the partition recovery or diagnostic partition instead of the C:\.  You can confirm the backup partition is written is done to partition the drive, and you want the backup to reside.

    Let us know if this helps solve the problem or if assistance is needed.

    Debbie
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Cannot create a zip file in Windows 8

    For some reason, I don't have the ability to send files in a folder compressed (by right-clicking on the file and then using the menu 'sent' to a compressed file. Also, the icon zip under the sharing tab in the file browser is grayed out, so I can't create the file zip file that way either. Is there a setting I need to change back to the possibility of creating a zip file in Windows 8? I downloaded and am currently using a 3rd zip application part as a replacement for Win zip 8, but wonder why it is no longer available. I'd appreciate any help!

    Great news.  Please check.

    Download and run the import of this registry file to restore default .zip and .zfsendtotarget file type association settings.

    Import Registry ZIP file

    After execution of this file and its importation of your registry (just save and run), changes should take effect immediately.  If this isn't the case, give a restart and test once more.

  • LR6.5.1 creates the zip file for archive back-up and takes a long time

    Hey

    have a quick question because I updated from LR5.7 to LR6.5.1 two days ago

    I am runing a MACBookPro with OSX 10.11.4 system

    I noticed two differences main performances, where I don't have an explanation for:

      1. LR 6.5.1 creates a zip file, when backup archive (automatically, or can we turn that off?)
      2. LR6.5.1 takes twice as long for the back-up LR5.7.1 (a reason for this?)

    Thank you for feedback. These things wonders, if not explainable to me

    Best regards

    Thx for the quick reply ultra th

    Meanwhile, I downloaded 6.6 and again creates unziped version of backup

    Could be, at that time there difference between 5.7 and 6.5 in creating backup has been due to the effort of compression

    THX and best regards

  • How to create a zip file of AcrobatXI in windows 8.1?

    How to create a zip file of AcrobatXI in windows 8.1? acrobat.com documents?  Sorry do not know what the community to ask this in this community?  The email provider I used didn't seem to want to accept thanks Adobe send first and since Adobe send ends January 6, I'm assuming a zip file is best...  I thought I had seen an Adobe Zip file somewhere, but have not been able to locate him. Any help appreciated.

    Thank you.

    Sherrie

    Hi Sherrie l.,

    Send Adobe is the current solution to Adobe for sending large files. (This is Adobe SendNow who retires soon.) Can you tell us what you were running by using Adobe send?

    It is not a special version of Zip for Acrobat files, but you could reduce the size of the PDF file if you have Acrobat. Or, in Windows, you can create a Zip file by choosing File > Send to > compressed (zipped) folder.

    Best,

    Sara

  • "Extract all...". "request password on some files inside the zip, but no password was used to create the zip file

    I created a zip of a directory tree file using "send to...". "'Compressed (zipped) folder '. When I try to "extract all...". ", he asks me a password for some (not all) of the files in the zip file. I does not have a password for the zip file. I didn't even know it was possible to have a password on a specific file in a zip! Needless to say, I can not give the password because I don't know what it is.

    I tried the following:

    (1) created with "send to...". "Excerpt from" compressed (zipped) folder ', with 'extract all... '. ». Result: request password.
    (2) created with "send to...". "" Compressed (zipped) folder ", extract with 7 - zip. Result: No password query. All the files extracted intact.
    (3) created with 7 - zip, extract with "extract all...". ». Result: request password.
    (4) created with 7-zip, extract with 7 - zip. Result: No password query. All the files extracted intact.

    What I find most interesting is (3).

    Does anyone have an idea of what's going on? Is there some kind of security on the files meta-data that could / should cause this behavior?

    System information:

    XP Pro 2002 SP3 on MS network (I have no idea what server, etc..)

    Hi ruborg,

    Your Windows XP question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the forum TechNet for assistance:

    http://social.technet.Microsoft.com/forums/en/itproxpsp/threads

    Hope the helps of information.

  • I created a zip file and loaded a lot of things I wanted on now it's gone can anyone help me please

    Help me please I don't know where he might be, and I'm not part of computers

    Hello

    1. how exactly did you create zip file and load the file in it?

    2. where did you had stored it?

    Step 1: Check if the file is hidden.

    Step 2: Find the file using Windows search.

  • How to create a zip file

    Hello

    I would like to ask how to pack the exported data to zip tiara?

    Thanks in advance.

    Radek

    Hi Radek,

    You can use the gnu tools for win32.

    They contain two executables zip.exe and unzip.exe you can ship for free and use a script similar to the following.

    Takse some time to check the settings of the two small tools.

    Option Explicit  ' force explicit declaration of all variables in a script.

    Sun zip file: zip file = CurrentScriptPath & 'example.zip '.
    If FileExist (zipFile) then
    FichierSupprimer zipFile
    end if

    Call AddToZip (file zip, CurrentScriptPath & CurrentScriptName)

    Dim outPath: outPath = Unzip (zipFile)
    MsgBox "from:"& outPath ".

    Void AddToZip (filePath, fileToAdd)

    Dim shell: Set shell = CreateObject ("WScript.Shell")
    protected zipCmd: zipCmd = CurrentScriptPath & "\zip.exe".
    "Dim command: command =" "" "& zipCmd &" "" "d-j" "" "& filePath &" "" "" "" "& fileToAdd & '"
    protected status: status = shell. Execute (command, 0, true)
    <>status) then
    made a mistake. Raise 100, "", "zip.exe failed with status" & status & ".."
    end if
    End Sub

    Function Unzip (filePath)
    Dim shell: Set shell = CreateObject ("WScript.Shell")
    Dim tempDir: tempDir = shell. Environment ("Process") ("Temp") & "\myoutput".

    protected unZipCmd: unZipCmd = CurrentScriptPath & "\unzip.exe".
    Dim command: command = "" "" & unZipCmd & "" "" o "" "& filePath &" "" "d" "" "& tempDir &" "" "»

    protected status: status = shell. Execute (command, 0, true)
    <>status) then
    made a mistake. Raise 100, "", "unzip.exe failed with status" & status & ".."
    end if
    Unpack = tempDir
    End Function

    Greetings

    Andreas

  • Desk top of Dreamweaver to get files to be placed in dreamweaver?  Can hoe I create a zip file.

    Create a folder on my

    Judging by the types of questions that you are posed here, I can safely assume that you know nothing about creating a web presence?  If so, I'll give you an overview.

    (1) download web hosting (server space) from a commercial Web host.

    (2) buy a domain name that will recognize people. for example. yoursite.com

    (3) your web site map. What is development of the site? Who is your target audience?

    (4) build your website with Dreamweaver pages or another web authoring tool.

    (5) download files on your web space with FTP (file transfer protocol) software.

    (6) to promote your web site with Google Webmaster Tools, keyword ads, etc...

    (7) maintain your website with fresh, keyword rich content.

    How to build a Web site in seven steps

    Nancy O.

  • When I click with the right button on a file icon and choose "send to" I get a fatal error, cannot create an instance of required object: message file Proxy, Help! In need to make a zip file!

    I tried to create a zip file. I could do a week just now, I get the fatal error message. One thing has changed in the computer I know is the periodical of the dates of Microsoft.

    I use windows XP Professional service pack 3

    I use a Dell Vostro Desktop computer.

    Thanks, I examine the resettlement. Fortunately, I was able to solve the problem by finding and disabling a shell extension that was causing the problem.

    Thanks for your help!

  • Any attempt to create results by "Access denied" error zip file

    Windows 7 Professional 64 bit.  I am logged in as administrator.  UAC is not active on this machine.

    Any attempt to create a zip file results in a dialog box stating "unable to complete the operation.  Access is denied. "
    If I select a file or group of files/folders, do a right click and say 'Send to Zip', I get this error.  Interestingly, while the error dialog box is still open, the zip file will be displayed in the current folder.  Clicking OK in the box dialog error cancels the dialog box and deletes the zip file.
    This seems to be some sort of permissions thing.  Can I create a zipfile by clicking right in the Explorer window by clicking on "new", then "compressed (zipped) folder", and it will create the file very well.  I can even give it a name.  Any attempt to copy anything in this new zip file generates an error "file not found or no read permission.  Try to delete the zip file says 'you need permission from administrators to make changes to this file.
    So now, I open the properties for the zip file and go to the Security tab.  It was there that I discovered that this file has no owner are entrusted to him.  I can then change owners, add my name as the owner of the file, assign full control to myself, apply the changes, and now the zip file can be read/written/removed normally.
    So whenever I need to create a zip file, I have to go through the steps of creating-> change the properties of the-> Assign owner-> Apply-> add files to the Zip file.  It's a royal pain in the keester.
    My question is: what changes to do to confide as the owner by default when a zip file is created?  This seems to happen with only zip files, any other type of file gives me this problem.  What happened since I got this computer brand new with Windows 7 64 - bit on it.  I can't say that it is a "Virgin" installation, he was photographed by a group of COMPUTER companies (I work for a fairly large company).  This group is a clue what happens and apparently others in our society do not report this problem.

    Solved! The problem is with the permissions on the 'TEMP' directory which is used during the process of zip. See this announcement and scroll down to "more useful answer.

  • create multiple files from zip file using java and pl sql

    Hi all

    I wrote the java code in oracle database 11 g 2 below.

    DROP JAVA SOURCE SCOTT."CreateZip";
    
    CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED SCOTT."CreateZip" 
    as 
      import java.io.BufferedInputStream;
      import java.io.BufferedOutputStream;
      import java.io.File;
      import java.io.FileInputStream;
      import java.io.FileNotFoundException;
      import java.io.FileOutputStream;
      import java.io.IOException;
      import java.util.zip.Deflater;
      import java.util.zip.ZipEntry;
      import java.util.zip.ZipInputStream;
      import java.util.zip.ZipOutputStream;
      
      public class CreateZip 
      {  
        
        //public static final int BUFFER_SIZE = 4096;
        
        public static void Zip(String zipFileName, String zipEntries) throws IOException
        {
          
          //String strName = zipEntries;
          String[] srcFiles = new String[] {zipEntries};
          //String[] srcFiles = {zipEntries};
           
          try
          {
              byte[] buffer = new byte[4096];
              FileOutputStream fos = new FileOutputStream(zipFileName);
              ZipOutputStream zos = new ZipOutputStream(fos);        
          
              for (int i = 0; i < srcFiles.length; i++) 
              {
                  File entryFile = new File(srcFiles[i]);
                  FileInputStream fis = new FileInputStream(entryFile);
                  zos.putNextEntry(new ZipEntry(entryFile.getName()));
    
    
                  int length;
                  
                  while ((length = fis.read(buffer)) > 0)
                  {
                   zos.write(buffer, 0, length);
                  }
                  zos.closeEntry();
                  // close the InputStream
                  fis.close();
              }
              // close the ZipOutputStream
              zos.close();
          }
          catch (IOException e) 
          {
           e.printStackTrace();
          }
           
        }
        
        public static void UnZip(String zipFilePath, String destDirectory) throws IOException 
        {
         
         try
          {
           byte[] buffer = new byte[4096];   
           //create output directory is not exists
            File folder = new File(destDirectory);
            if(!folder.exists())
            {
                folder.mkdir();
            }
            //get the zip file content
            ZipInputStream zis = new ZipInputStream(new FileInputStream(zipFilePath));
            //get the zipped file list entry
            ZipEntry ze = zis.getNextEntry();
            
            while(ze!=null)
            {
              String fileName = ze.getName();
              File newFile = new File(destDirectory + File.separator + fileName);
              //create all non exists folders
              //else you will hit FileNotFoundException for compressed folder
              new File(newFile.getParent()).mkdirs();
              FileOutputStream fos = new FileOutputStream(newFile);
              int len;
              while ((len = zis.read(buffer)) > 0)
                 {
                  fos.write(buffer, 0, len);
                 }
                 
              fos.close();   
              ze = zis.getNextEntry();
              
            }
            zis.closeEntry();
            zis.close();
          }
          catch (IOException e) 
          {
           e.printStackTrace();
          }
          
        }
        
        
      }
    /
    

    and the pl/sql wrapper is lower.

    CREATE OR REPLACE PACKAGE SCOTT.CreateZip AS
    PROCEDURE UnZip(Param1 VARCHAR2, Param2 VARCHAR2) 
    AS
      LANGUAGE java 
        NAME 'CreateZip.UnZip(java.lang.String, java.lang.String)';
    
    
    PROCEDURE Zip(Param1 VARCHAR2, Param2 VARCHAR2) 
    AS
      LANGUAGE java 
        NAME 'CreateZip.Zip(java.lang.String, java.lang.String)';
    end;
    /
    

    but my problem is to unzip code works file while the Zip function does not work.

    I passing the path with file name as this to create the table in java in the Zip function

    Zip('d:\EXCEL_ORACLE_DIR\Test.zip','d:\EXCEL_ORACLE_DIR\abc.txt,D:\EXCEL_ORACLE_DIR\abc.docx').

    creates the zip file with the size of zero byte, where is the problem.

    The problem is in line 26 because you split an array of String [] zipEntries...

    Try this

    String [] srcFiles = zipEntries.split(",");

    You exception, but you don't know in plsql procedure...

    Try to change your java method...

  • in labview using zip file

    I create a zip file, but when my VI is done run it tells me that the file is always used by Labview and it won't let me open or delete. do not know how it is still in use, I even tried closing after but it did not work

    OK, I found a very likely problem which could be the cause of your zip file to not close.  If you have no file to add, the loop FOR will not iterate.  It is a problem because just output terminals returns the default values for 0 iteration FOR loops.  You just lost your reference of zip file.  There is an easy solution.  Use shift for you registers reference file.  A shift register is a single memory location, the output of the shift register will be everything that you initialize it to.  I also recommend to do the same for the cluster of error so that you do not lose a mistake.

  • zip file creation

    I create a text file with a specific name and multiple values from an experience. I need to place this text file in a zip file that has a specific name, also referring to the respective experience. I don't know how to do this. I read something about the creation of projects, but that seemed more manual. I need this to be automatic so that when the values are obtained, it creates the zip file then creates and updates the txt file in zip archive. Thanks in advance.

    lvuser333 wrote:

    I create a text file with a specific name and multiple values from an experience. I need to place this text file in a zip file that has a specific name, also referring to the respective experience. I don't know how to do this. I read something about the creation of projects, but that seemed more manual. I need this to be automatic so that when the values are obtained, it creates the zip file then creates and updates the txt file in zip archive. Thanks in advance.

    Try something like this

    It essentially uses the name of the experience to generate a full path of a text file, and a full path of a file zip (both with the common name experiment) in location based on the file path.

    Then writes the results to a text file, create / open a zip file, adds the text file newly created for the zip file and the farm.

Maybe you are looking for

  • Satellite L350 - 17Q - WLAN connection 30 minutes breaks

    Hey,. My Toshiba Satellite has had serious net problems. I installed all of the correct drivers. In the first instance, the internet works perfectly, fast, smooth, I can watch streaming videos, you name it... Quite soon after like 30 minutes the pc s

  • The formatting of the SD card.

    Hello. I do not have a rocket for the moment, but will buy one in a few days or more. I just want to know what I need to get to work immediately with minimum fuss. I will also buy a 4 or 8 GB microsdhc with her card. Should I just leave the map as -

  • How to access my settings of the webcam for an hp pavilion windows vista any help would be appreciated

    How to access my settings of the webcam for an hp pavilion windows vista any help would be appreciated

  • DIFxAPI error b/c Vista is 64 bit?

    I recently had my old computer crash and I needed a new computer for my studio recording (Pro Tools 7.4 THE), so I had to get another Vista. This new Vista is 64 bit. I had the SAME problem installing Pro Tools and all the Plugins - Antares Auto-Tune

  • Compellent SAN - replacement of disks not assigned

    I was wondering if someone could help me with a problem with my compellent san. I had a hard drive crash and bought a replacement, when I put it in it sees the drive, but it is not attributed. When I'm going to assign it to the folder I get an error