Making a Zip file.

I have a folder of files and folders which i want to make into a zip file. How can i do that?

Hello,
Making ZIP Files (Compressed Files) in One Click
Where the instructions say: To create a compressed file, either Control-click on the file and choose Create Archive (which is Apple-speak for “make a compressed ZIP file”). When you control click instead of seeing "make a compressed zip file", you might see: Compress ... such and such file.
Carolyn

Similar Messages

  • Making a zip file to upload images to PBASE

    I do have Mobile Me, but need to upload 200 images to PBase. I've tried this before and had problems. Can I create a zip file from Iphoto? or a .tar (don't know this type) If so, please tell me how. Thanks.

    First, have you tried iPhoto2PBase?
    http://newwavedigitalmedia.com/iPhoto2PBase.htm
    Second, if that is not acceptable, my guess is that you would have to do it in a two step process where you export the photos you want in pbase to your desktop (or where ever) then zip up those photos into a file to upload.
    Patrick

  • NCS reports email as zip files

    I recently migrated from WCS to NCS and since the migration all the reports are being sent inside a zip file.  I remember having this issue when I first installed WCS many years ago, however I am unsure what was done to correct it.  I have checked the Administration section of NCS to try and find the setting but no luck or within the Report Launch pad on any of the migrated reports or the new reports.
    I don't want them sent as zip files but as either native CSV or PDF as specified within the appropriate report.  The reports are never that big to need compressing into a zip plus the mail server they send through will accept up to 20-25MB attachments which is much greater than the native size of any of the reports generated through NCS or WCS.

    I agree, I email quite a few csv reports and the file size is typically under 1k. It is strange they don't making the zip file an option instead of doing it mandantory with every e-mail. I find it very cumbersome when dealing with 10 - 12 reports and having to unzip every file first.

  • Can't open the Zipped file

    Hi
    I am making a zip file using GZIPOutputStream. But I am not able to open the zip file that is created using win zip.The size of the zipped file is 81 KB and the input file is 3,245 KB.I have closed all the streams still I am not able to figure out the problem.Any idea where I am going wrong ? Any help would be greatly appreciated.
    Here my code goes:
    import java.util.zip.*;
    import java.io.*;
    public class ZipFile
         public static void main(String[] args) throws FileNotFoundException,IOException
              ZipFile("D:\\Java\\Test\\INPUTXML_bkp_1.xml");
         public static String ZipFile(String fileName) throws FileNotFoundException,IOException
              String name = fileName.substring(fileName.lastIndexOf('\\') +1 ,fileName.lastIndexOf('.'));
              String filePath = fileName.substring(0,fileName.indexOf(name));
              String newFileName = new StringBuffer(name).append(".zip").toString();
              FileOutputStream outputStream = new FileOutputStream(newFileName);
              GZIPOutputStream zipOutputStream = new GZIPOutputStream(outputStream);
              FileInputStream inputStream = new FileInputStream(fileName);
              byte[] temp = new byte[10000000];
              int counter = inputStream.read(temp,0,temp.length);
              zipOutputStream.write(temp,0,counter);
              inputStream.close();
              zipOutputStream.finish();
              zipOutputStream.close();
              return newFileName;
    Thanks
    Ritesh

    Thanks for the reply.
    I changed my code to look like this:
    import java.util.zip.*;
    import java.io.*;
    public class ZipFile
         public static void main(String[] args) throws FileNotFoundException,IOException
              ZipFile("D:\\Java\\Test\\INPUTXML_bkp_1.xml");
         public static String ZipFile(String fileName) throws FileNotFoundException,IOException
              String name = fileName.substring(fileName.lastIndexOf('\\') +1 ,fileName.lastIndexOf('.'));
              String filePath = fileName.substring(0,fileName.indexOf(name));
              String newFileName = new StringBuffer(name).append(".zip").toString();
              FileOutputStream outputStream = new FileOutputStream(newFileName);
              ZipOutputStream zipOutputStream = new ZipOutputStream(outputStream);
              ZipEntry zipEntry = new ZipEntry(fileName);
              zipOutputStream.putNextEntry(zipEntry);
              zipOutputStream.finish();
              zipOutputStream.close();
              return newFileName;
    Now I can atleast open the zip file. But the problem is the size of the file is 0 kb. Probably because, I am not populating the Zip entry. Can u pls let me know how do I do that.
    Thanks
    Ritesh

  • Finder making ZIP file password protected on Windows

    Here's an odd one. Someone (on OS X.5.7) makes an archive (ZIP) of a folder and gives the same file to two people, one on XP and one on Leopard (10.5.8).
    The Leopard user can open the zip file no problem. The XP user has a password prompt, and can't extract or copy the files out of the ZIP file without the password. But no password was set and nobody can guess what the password might be.
    Anybody see anything like this while making ZIPs from Leopard?

    I am having the same problem, occasionally and randomly.
    It seems to be problem with XP and not Vista.
    The standard advice is to right click the zip in Windows, then properties, then "unblock", but this doesn't work in the case of my most recent problem zip.
    I have tried zipping todays problem folder with Finder, FileChute and Betterzip, and none of them will open in XP, but all will in Vista.
    Note that XP will open the zip and show the jpegs, but the jpegs will not open.
    Really would appreciate some help on this.

  • Error while extracting zip file

    I am using the following code to extract zip files from jar file
    source = "zip/test.zip"
    destination = "c:\\"
    public void unzip(String source,String destination){
              try{
                   ZipInputStream in = new ZipInputStream( this.getClass().getResourceAsStream(source));
                   FileOutputStream fos = null;
                   ZipEntry ze = null;
                   File ff = null;
                   while ( (ze=in.getNextEntry() ) != null ){
                        System.out.println( "name=" + ze.getName() );
                        ff = new File( destination + ze.getName() );
                        if ( ze.isDirectory() ){
                             System.out.println("making "+ze.getName()+" dir ("+ ff.mkdirs() +")");
                        else{
                             fos = new FileOutputStream( ff );
                             byte[] buf = new byte[1024];
                             int len;
                             while ((len = in.read(buf)) > 0){
                                  fos.write(buf, 0, len);
                             fos.close();
                             System.out.println("wrote file "+ff.getPath()+" success=" + ff.exists() );
                   in.close();
              }catch(Exception e){
                   e.printStackTrace();
         }     But i found error in extracting zip file
    java.io.FileNotFoundException: C:\eclipse\.eclipseproduct (The system cannot find the path specified)
    I need some quick response on it.

    Nothing to do with the resource path....thats fine. Use the code below.....most likely this will fix it.......
    Added a check for directories that start with a ".".  The File utility probably thinks its a file, also added a try....check it does make the "." directories.........dont forget the dukes.
        ZipInputStream zis = null;
        FileOutputStream fos = null;
        try
          zis = new ZipInputStream( new FileInputStream( "C:\\your_path\\your_zipfile_or_jar.zip" ) );
          ZipEntry ze = null;
          File ff = null;
          while ( ( ze = zis.getNextEntry() ) != null )
            System.out.println( "name=" + ze.getName() );
            ff = new File( "C:\\your_path\\" + ze.getName() );
            if ( ze.isDirectory()  || ze.getName().startsWith("."))
              try{ System.out.println( "making " + ze.getName() + " dir (" + ff.mkdirs() + ")" ); }catch(Exception e2){}
            else
              fos = new FileOutputStream( ff );
              byte[] buf = new byte[1024];
              int len;
              while ( ( len = zis.read( buf ) ) > 0 )
                fos.write( buf, 0, len );
              fos.close();
              System.out.println( "wrote file " + ff.getPath() + " success=" + ff.exists() );
          zis.close();
        catch( Exception ex )
          ex.printStackTrace();
        finally
          try { zis.close(); }catch(Exception ex){}
          try { fos.close(); }catch(Exception ex){}
        }

  • Sending Downsized Images to Zip File Problems

    I use Adobe Elements 5.0 and have been uploading images to the organizer for a couple of years without problems, until just recently.  Here is how the process used to work.  When images are uploaded they are saved to a new file folder under C drive/ Public Photos/ specific folder with date and subject matter;  I fix the images in adobe then go to the specific folder and create a subfolder within that folder called "downsized".  I then use Adobe to "process multiple files" and downsize for purposes of sending to Pbase. Once the files have been downsized the images end up in the specifc folder, inside the downsized subfolder.  I then rt click and select "send to" 'compressed (zip) folder'.  From there I would open Pbase and upload the zipped folder to a new gallery.
    Recently everything has been fine until I get to the send to zip folder.  Instead of sending to the familiar yellow zip folder it is being sent to the adobe photoshop editor in the form of the adobe icon.  I click on that and it promts me for filename, width, height, resolution and color mode.  I am unable to upload this zipped file version to Pbase.  Previously, when things were operating correctly, I would have a folder, with a subfolder under that called downsized.  Within the downsized folder would be the zipped file for sending to Pbase.  Something has happened recently so that I am ending up with a folder, a subfolder called downsized a sub 'folder' under that which is the adobe elements icon and a downsized file under that which is a copy of the downzied photos in the first downsized file.  In checking out all of my 100 or so folders all of them have been 'converted" to the same organization pattern.  What has happened and how do I fix the problem so that I can send the downsized folder to a zip file for importing to Pbase?  Thank you. 

    You should realize I am just making wild guesses at your problem. And I am assuming you actually have a Microsoft Word document that you are sending. If you do, then following menu options "Insert, Picture, From File..." should work. But if you are just writing out HTML and telling the browser it's actually a Word document, I have no idea.

  • Problems with CRC in some windows app's whit zip files generated with Java

    Hello,
    That is very strange but, we have an app for compressing a folder into a zip. For making, we use the Java.Util.Zip API. Our zip file looks fine, we can unzip the files into another folder without problems, even we can open the file with Winzip or Winrar.
    But, we had encountered problems with anothers win apps like "Recovery ToolBox", or another win app built with the "Dynazip.dll" library. This apps give us the next error.
    "Bad Crc".
    But if we unzip this "corrupt" file and we zip the content again, all work without errors.
    [http://img297.imageshack.us/i/dibujoou.jpg/]
    Our code (this function only zips a single file):
        public static File zipFile(String sFile, String sNameFileIn, String sFileOut)
                throws IOException {
            File file = new File(sFile);
            FileOutputStream out = new FileOutputStream(sFileOut);
            FileInputStream fin = new FileInputStream(file);
            byte[] fileContent = new byte[(int) file.length()];
            fin.read(fileContent);
            ByteArrayOutputStream bout = new ByteArrayOutputStream();
            ZipOutputStream zout = new ZipOutputStream(bout);
            ZipEntry zipEntry = new ZipEntry(sNameFileIn);
            zout.putNextEntry(zipEntry);
            zout.write(fileContent, 0, fileContent.length);
            zout.closeEntry();
            zout.finish();
            zout.flush();
            zout.close();
            out.write(bout.toByteArray());
            out.flush();
            out.close();
            File fich = new File(sFileOut);
            fin.close();
            return fich;
        }I try to calculate the crc number for my own without success... I don't know what's happening
    Thanks in advance

    FileOutputStream out = new FileOutputStream(sFileOut);ZipOutputStream zout = new ZipOutputStream(new FileOutputStream(sFileOut));
    byte[] fileContent = new byte[(int) file.length()];Here you are assuming the file size is <= Integer.MAX_VALUE. What if it isn't? Remove.
    fin.read(fileContent);Here you are assuming you filled the buffer. There is nothing in the API specification to warrant that assumption. Remove. See below.
    ByteArrayOutputStream bout = new ByteArrayOutputStream();
    ZipOutputStream zout = new ZipOutputStream(bout);Remove.
    ZipEntry zipEntry = new ZipEntry(sNameFileIn);
    zout.putNextEntry(zipEntry);Correct.
    zout.write(fileContent, 0, fileContent.length);int count;
    byte[] buffer = new byte[8192];
    while ((count = fin.read(buffer)) > 0)
    zout.write(buffer, 0, count);
    zout.closeEntry();Correct.
    zout.finish();
    zout.flush();Redundant but not incorrect.
    zout.close();Correct.
    out.write(bout.toByteArray());
    out.flush();
    out.close();Remove.
    File fich = new File(sFileOut);
    fin.close();
    return fich;I don't know why this method returns a File constructed out of one of its own arguments, which the caller could equally well do for himself, otherwise OK.

  • CLASSPATH, Jar file or zip file visibility during compilation and  run time

    I am using jwsdp-1_0_01 with some success.
    However, making my *.jar or *.zip files
    visible during ant builds is not working.
    Setting a CLASSPATH environment
    variable (BTW: I on a Linux box) seems
    to have no effect. I'm using the ant build
    machinery found the JWSDP download
    jwsdp-1_0_01/docs/tutorial/examples/jaxrpc/
    and as long as I don't reference anything in
    mystuff.zip
    compilation succeeds and tomcat is happy
    to provide my service. How can I get ant
    and tomcat to see 'mystuff.zip' or 'foo.jar'
    or whatever.
    Note: I was able to get past these problems
    using jwsdp-1_0-ea1 but (sigh) nothing learned there
    seems to help here.
    -joe

    Hi joe
    I made changes to targets.xml (in jwsdp-1_0\docs\tutorial\examples\jaxrpc\common) to include my own jar files.
    To enable Tomcat to see the jar files when I install the service, I copied them into jwsdp-1_0\common\lib.
    Here is the modified targets.xml (from Windows):
    <target name="compile-server" depends="prepare" description="Compiles the server-side source code">
    <echo message="Compiling the server-side source code...." />
    <javac srcdir="src" destdir="${build}/shared"
    includes="net\agmodel\metsoap\*.java"
    excludes="net\agmodel\metsoap\*Client.java"
    classpath="C:/jwsdp-1_0/common/lib/genericbroker.jar:C:/jwsdp-1_0/common/lib/weatherdata.jar" />
    </target>
    <target name="compile-client" description="Compiles the client-side source code">
    <echo message="Compiling the client source code...." />
    <javac srcdir="src" destdir="${build}/client" classpath="${jwsdp-jars}:build/shared:build/client:C:\jwsdp-1_0\common\lib\genericbroker.jar:C:\jwsdp-1_0\common\lib\weatherdata.jar" includes="net/agmodel/metsoap/*Client.java" />
    </target>
    Hope this helps.
    Good luck
    Matthew

  • Is there a program out there that will repair .zip files in OS x?

      i have a zip file that i cant open i get a crc error.Is there a program out there that will repair .zip files in OS x?

    Klaus1 wrote:
    its a movie taken on i movie.
    iMovie projects do not like being zipped. Unless you have the unzipped original you will have to create the project again.
    Furthermore there's probably no point in trying to zip it.  Many media formats such as mp3, AAC, mp4, jpeg are already compressed and compressing again just adds overhead (making them bigger) as well as placing them in a format that is hard to recover anything from should something go wrong.

  • Waas caching problem with zip files

    hi,
    When we send same zipped file to branches, waas does not cache that file, without zipping waas caches the file. Is there any restrictions for zip file?

    Hi Muhammed,
    When you say that WAAS is not caching, I guess you mean that the optimization achieved is much lower than without zipping the file. Am I correct?
    If that is the case, then, I'm afraid it's the expected behavior. The cause for this is DRE
    In general terms, the way DRE works is by caching small chunks of a file. Later on, when these chunks are seen again in the file (either in the same connection or subsequent ones), they will not be transferred through the WAN link and instead, a chunk identifier (very small) will be sent. The problem is that all compression algorithms work in a similar way, removing repeating parts of the file to make it smaller.
    The result is that, any file that is encrypted/compressed has almost no repeating patterns in it, and therefore, even though DRE is applied, the reduction ratios are minimal, sometimes even getting to the point of making transfer even slower than without it.
    As a general good practice, if you are using WAAS to optimized your data transfers, make sure that the files you are transferring are neither compressed nor encrypted. This way you will get the maximum optimization ratios out of WAAS.
    I hope this answers your question
    Daniel

  • ZIP files corrupted after downloading

    after downloading the image files for Sample ADF Fusion Web Development which is mentioned in Oracle 11g, the zip file does not open. please suggest me what I can do?

    Hi;
    after downloading the image files for Sample ADF Fusion Web Development which is mentioned in Oracle 11g, the zip file does not open. please suggest me what I can do?If your zip is corrupted than you have to redownload related file,i suggest use some download manager while u are making download
    Regard
    Helios

  • Zip File Creation

    I have a problem with my method for making zip files:
    When going throught the folder it appears to be 'skipping' files.
    ZipOutputStream output;
        public void createZipFile(String fileName)throws FileNotFoundException
         output = new ZipOutputStream(new BufferedOutputStream(
              new FileOutputStream(fileName)));
        public void zip(String fileName) throws IOException {
         System.out.println("fileName: " + fileName);
         BufferedInputStream input;
         File file = new File(fileName);
         if (!file.exists())
             System.out.println("No such directory");
         File[] list = null;
         if (file.isDirectory())
             list = file.listFiles();
         else {
             byte[] buffer = new byte[512];
             int in = 0;
             System.out.println("File: " + file.getName());
             output.putNextEntry(new ZipEntry(file.getPath()));
             input = new BufferedInputStream(new FileInputStream(file));
             while (true) {
              in = input.read(buffer, 0, 512);
              if (in == -1)
                  break;
              output.write(buffer, 0, in);
             output.closeEntry();
             return;
         byte[] buffer = new byte[512];
         int in = 0;
         if (list != null) {
             for (int i = 0; i < list.length; i++) {
              if (list.isDirectory()) {
              zip(list[i].getPath());
              continue;
              System.out.println("File: " + list[i].getName());
              output.putNextEntry(new ZipEntry(list[i].getPath()));
              input = new BufferedInputStream(new FileInputStream(list[i]));
              while (true) {
              in = input.read(buffer, 0, 512);
              if (in == -1)
                   break;
              output.write(buffer, 0, in);
              output.closeEntry();
         } else
         return;
    Note: createZipFile is called from another function.

    I have a problem with my method for making zip files:
    When going throught the folder it appears to be 'skipping' files.
    ZipOutputStream output;
        public void createZipFile(String fileName)throws FileNotFoundException
         output = new ZipOutputStream(new BufferedOutputStream(
              new FileOutputStream(fileName)));
        public void zip(String fileName) throws IOException {
         System.out.println("fileName: " + fileName);
         BufferedInputStream input;
         File file = new File(fileName);
         if (!file.exists())
             System.out.println("No such directory");
         File[] list = null;
         if (file.isDirectory())
             list = file.listFiles();
         else {
             byte[] buffer = new byte[512];
             int in = 0;
             System.out.println("File: " + file.getName());
             output.putNextEntry(new ZipEntry(file.getPath()));
             input = new BufferedInputStream(new FileInputStream(file));
             while (true) {
              in = input.read(buffer, 0, 512);
              if (in == -1)
                  break;
              output.write(buffer, 0, in);
             output.closeEntry();
             return;
         byte[] buffer = new byte[512];
         int in = 0;
         if (list != null) {
             for (int i = 0; i < list.length; i++) {
              if (list.isDirectory()) {
              zip(list[i].getPath());
              continue;
              System.out.println("File: " + list[i].getName());
              output.putNextEntry(new ZipEntry(list[i].getPath()));
              input = new BufferedInputStream(new FileInputStream(list[i]));
              while (true) {
              in = input.read(buffer, 0, 512);
              if (in == -1)
                   break;
              output.write(buffer, 0, in);
              output.closeEntry();
         } else
         return;
    Note: createZipFile is called from another function.

  • Which file do I work from with ready made template zip files?

    I'm determined to figure this out.  I hope you can save me some time.  I'm new to website building and have built websites from scratch.  Now I've been given asked to make a website for my employer using a zip file of a company template.  When I extract it I get 2 folders HTML templates and Templates.  If I click HTML Templates > it opens 3 folders HTML, IMAGES and INCLUDES.  I have been given instructions that the templates provide me with the CSS, HTML and code I need to make standard pages.  The zip file is to contain all thecode plus a number of ready pages complete with content containers already laid out and all I have to do is enter dummy content of my own.  Sounds easy but making my own seems a lot easier!  Where do I start.  Just need a few tips and off I'll go I'm sure.  Hoping you can help me otherwise I'll ask for help internally tomorrow.  Thanks.

    Thank you for responding.  I can edit the .dwt file but can't seem to then add it as a template to any other page I create.  It's probably something so simple...ugh.
    I

  • Zip files broken - Can't open, getting error

    I am no longer able to unzip my zip files.  It was working one day and broken the next.  The zip file icons no longer have a zipper, they simply show as a blank sheet.  When I double click to open/extract, I receive this message:
    The document “mydocument.zip” could not be opened. The file isn’t in the correct format.  The document “AmazonS3HowToFull.zip” could not be opened. The file isn’t in the correct format.
    This is happening with all my zip files.  New and old.  I have tried reinstalling UnRarX with no luck.
    It would seem that zip files are no longer associated with the appropriate app.  I don't know if there was a default unzip app on the Macbook.
    There is nothing I can put my finger on that I have done recently or differently that would have caused this change.
    I'm running OSx Lion 10.7.4.
    Thanks for any help you can give!
    Doug

    Thank you for trying to help. But I have tried to download the Program MPEG Streamclip as you said but unfortunately it need Quicktime too, the Readme said that there were another program I could use too called Quicktime Alternative. So I tried to uninstall the real Quicktime and install the alternative instead. But either the program MPEG Streamclip can't see that I have removed Quicktime or that I have removed the old one.
    Every time I put an .avi file into the program it can only convert about 1:30min of the movie and that is only with the sound no movie, and if I put one of the .MPG (that Itunes can't convert) in an error box pops up and says:
    *The Apple QuickTime 6 MPEG-2 Playback Component is not installed...*
    Please uninstall QuickTime completely. Then install QuickTime Alternative (1.61 or later), making sure the "Extra QuickTime plugins checkbox is enable.
    Alternatively, if you have Apple QuicktTime and you don't want to uninstall it, you can buy MPEG-2 Playback Component from Apple Computer.
    I think this is a bit sad cause I just bought the new Ipod Touch and I can't put the movies I like the most.
    Hope someone can help me...
    But thanks for the time you used to try to help me QuickTimeKirk

Maybe you are looking for

  • Is there a way to create or use a "slide viewed" variable?

    Hi, I would like to write a conditional action based on whether or not a learner has visited slide. I realize I could write an individual variable for every single slide, but that would be a very slow and manual way to set this up. From a logic persp

  • Weird error message when using LOCK_ALL

    Hello everyone, I'm testing locking with LOCK_ALL and I'm getting this error in the logs 013-02-25 17:30:08,790 longmoapp-zd1:9005 ERROR Logger@9247854 3.6.1.8 Coherence - (thread=DistributedCache:DistributedTrade, member=3): (Wrapped) java.io.IOExce

  • Editing Site Settings Gives "Unable to process your request"

    Hi,  I get "unable to process your request" when trying to edit the FIM portal site settings. I'm using my domain admin account I installed FIM under, which is also a SharePoint administrator. I'm trying to edit some basic UI details. I've installed

  • How to change default response encoding for not jsp files

    Hi Question about Weblogic Portal&Serwer 10. For standard web applications from war archiwes, html etc. files are send with default server response "Content-Type: text/html; charset=ISO-8859-1". The question is how to disable this default header or h

  • Excisable vendor return - reversal

    Hi, While doing return delivery with movement type 122, user mistakenly posted wrong basic excise duty and after that he has posted that excise invoice in J1IS Now how to reverse this cycle and correct the basic excise duty. Please explain? Thanks, S