Cannot untar a tar zip file

I'm initially a linux user, now trying to chnage to solaris server. I found a problem untaring a tar zip file. There is no command 'gzip' or 'gunzip' in my solaris server. And for the tar command, there is no option '-z'. So, how can I untar and unzip a tar zip file?

Hi ,
What Solaris Version you are using? On www.sunfreeware.com site, once you choose correct operating system version you may see all utilities on right side at bottom. There are some in pkgadd format.
e.g gzip 1.2.4-sol26-sparc-local is in pkgadd format for Solaris 2.6.
You will find similar files for Sparc/Intel for all vesions.
Download same.
#pkgadd -d gzip 1.2.4-sol26-sparc-local
This will install all you needed. I hope this will help you.
Thanks,
SdD

Similar Messages

  • Cannot "Send to" large .zip files

    We cannot use the "send to" feature to send large .zip files to another document library. I can send small .zip files with no issues. This file is 450mb. I know what your thinking, it over our size limit, however, I can send .pptx that are 700
    mb because we set out limit to 750mb.
    The message we get is "Sorry, something went wrong."

    Hi ChipTech1,
    Please go to your SharePoint Central Administration, set the "Maximum Upload Size" value for this problematic web application, then add the following code in the web.config file (please backup the original web.config file) under 15\ISAPI folder
    per the following article, then iisreset and check if it works.
    Note: This mocification will be covered when you install SharePoint CU or Service Pack update.
    <location path=”OfficialFile.asmx”>
        <system.web>
            <httpRuntime maxRequestLength=”2097151″ executionTimeout=”240″ />
        </system.web>
    </location>
    http://danmyhre.wordpress.com/2012/05/15/50mb-limit-on-files-sent-to-content-organizerofficialfile-asmx/
    Thanks
    Daniel Yang
    TechNet Community Support

  • Cannot download dmg or zip files

    I'm now at the end of my tether and really hope someone can help.
    Whenever I click on a link for a zip or dmg download, the address comes up in the address bar but the download doesn't start automatically, as it does on my wife's Macbook. In other words, the little box which asks if you want to open the file or save it doesn't appear. In every instance of this I have to use a seperate download manager which is proving to be a pain.
    Any ideas how I can remedy this? For other types of file, pdf's etc it works absolutely fine. This problem occurs in both Firefox and Safari and the preferences in both of these match my wife's. Therefore it must be a system error somewhere, but this hasn't worked for some time.
    I'm running 10.5.4

    Still having problems!
    On my wife's Macbook, when she clicks on a link she gets the little box pop up to ask her what she wants to do with the file. I never get that, which has been a real pain in the backside when trying to download the new iTunes this week, which never appeared in my software updates.
    Any help would be greatly appreciated!

  • How to read a Zip file in PL/SQL program

    Hi,
    I was Reading a ".csv" file from a web URL eg. "www.aba.com/zxc.csv" in my PL/SQL procedure using UTL_HTTP package and loading data in my DB.
    Now that file is in .zip format, is there any way that I can still read that .csv.zip file through my PL/SQL procedure. Because now I have to download it first then
    unzip it and then I am loading it into my DB using UTL_FILE package instead I want to do it automatically as I was doing it before when it was not zipped.
    Thanks & Regards
    Sanjay

    Peters solution is a great, nice alternative - you should consider it.
    But your present solution reads the data from the web using UTL_HTTP into a CLOB I presume? So you are not hitting the file system at all?
    If it is not an option for you to go to the file system, then it is possible that you can use [url http://docs.oracle.com/cd/E11882_01/appdev.112/e25788/u_compr.htm#BGBBCDDI]UTL_COMPRESS package.
    That is (maybe) a possibility if the zip file only contains one file - it cannot handle if the zip file is a zip archive with several files in it.
    You could try doing your UTL_HTTP load into a BLOB and then call UTL_COMPRESS.LZ_UNCOMPRESS to unzip that BLOB into another BLOB.
    I'm not guaranteeing it will work, but it may be worth a try if you cannot do it Peters way ;-)

  • How can I save an attached ZIP file

    I cannot access an attached ZIP file in Acrobat XI Pro. Please help as this is becoming a huge time waster.

    Hi alisonr1825446,
    When you convert a PDF file to Word/Excel, it's automatically saved to your Acrobat.com online account. From there, you can download it to your desktop to edit it, and then save it. To download your file, log in to https://cloud.acrobat.com/files. Select the file, and then click the Download link at the top of the file list. Your file will be downloaded to the Downloads folder on your computer.
    Please let us know how it goes.
    Best,
    Sara

  • Captivate 4 - Cannot publish to a zip

    I am running WinXP and Cap 4. For some reason, I cannot publish to a zip file. I am running Win XP. I tried on two different machines with the same result. It appears as if the content of the zip folder will appear in the directory to which I publish.

    Strange, could you post a screenshot of your Publish settings?
    Lilybiri

  • How to untar a tar.gz using java libraries

    hi all!!!
    can u please help me to unzip and untar a tar.gz file without using the package com.ice.tar
    thanks everyone

    Are you running your application on unix env?. can
    you give some more info on your requirement.iam using windows
    i want to unzip and untar the file using java program
    is there any package in java to untar a tar.gz file
    (thanx anyway for suggesting the thread com.ice.tar, i already went through that)
    i already unzipped the file using GZIPInputStream
    it will be helpful if you paste the source code...

  • Cannot see zipped files in Windows Explorer

    I used the code below to create a zip file. When I use Winzip to open a zip file named test.zip, I can see all the files (a.txt, b.class, etc.) that have been zipped. But, when I double-click on the test.zip in Windows Explorer (Windows XP Professional), I cannot see any of the zipped files.
    Can someone give me some pointers?
    import java.util.*;
    import java.util.zip.*;
    import java.io.*;
    public class CreateZip
         public CreateZip()
         public void createZipFile(String[] all_array, String zipfilename)
              FileOutputStream pout; // declare a file output object
    PrintStream p;
              String file_path = "D:\\Docs\\FedPlanner\\";
    try
    pout = new FileOutputStream(file_path + "FedPlanner_Zip_log.txt");
    p = new PrintStream( pout );
                   for (int i = 0; i < all_array.length; i++)
                        System.out.println("all_array = " + all_array);
                        p.println (all_array[i]);
    p.close();
    catch (Exception e)
    System.err.println ("Error writing to file");
              byte[] buf = new byte[1024];
              try
                   String outFilename = file_path + zipfilename;
              ZipOutputStream out = new ZipOutputStream(new FileOutputStream(outFilename));
                   for (int i=0; i< all_array.length; i++) //
                   FileInputStream in = new FileInputStream(file_path + all_array[i]);//filenames
                   out.putNextEntry(new ZipEntry(file_path +all_array[i]));//filenames
                   int len;
                   while ((len = in.read(buf)) > 0)
                   out.write(buf, 0, len);
                   out.closeEntry();
                   in.close();          
              out.close();
              catch (IOException e)
                   e.printStackTrace();
         public static void main(String args[])
              for(int i=0; i < all_array.length; i++)
                   System.out.println("x = " + all_array[i]);
              CreateZip create = new CreateZip();
              create.createZipFile(all_array);

    I have never created a zip file using Java . But from what i know about Winzip and Window Explorer, here's my takes on it:
    1. Winzip works with severals different compression algorithm 9including their own)
    2. Winzip has the ability to display the content of the zip file (if the zip file happens to be one of the compression algorithm they supported....otherwise, it's highly unlikely, winzip can even open the file)
    3. Window Explorer does not call Winzip to display the content of Winzip file. rather, Window Explorer has its own utility to look into the Winzip for files and display them. Note: they probably only do this for the popular compression algorith (such as Winzip .zip, probably .tar...but highly doubtful of the one that Java use to make a zip file).
    So..it's probably Window Explorer does not supports display that compression algorithm (the one Java use) for a Winzip file.
    Example...you created a new format for an image call .mypics
    Window Explorer can display a thumb nail for .bmp, .jpeg, and quite a few other
    You created an application to display the image. Now..in Window Explorer, when you click on the icon, the thumbnail of the pic is not display...this is because Window Explorer does not have a util to do thumbnail for that format.

  • Is there a way to open a zip file received via email on the iPad? I tried and a message popped up saying mail cannot open the attachment.

    Is there a way to open a zip file received via email on the iPad? I tried and a message popped up saying mail cannot open the attachment.

    You need a third party app. Take a look at some of these on this Google page.
    Open zip files on iPad

  • Cannot open/unblock msi & exe files in .zip file

    Trying to open .zip file but get security warning. Have tried to set unblock file but still issue still exists and the files cannot be opened. Is there a way to override this restriction?

    I had the same problem in build 9926 (seems to be solved for me in 10041). Clicking "Unblock" or running the Powershell command "unblock-file" had no effect whatsoever.
    A workaround is to add a Policy that prevents Windows from blocking the file in the first place, when it's downloaded. This requires you to redownload the files though, as it does not fix already blocked files.
    Solution 1:
    Add the following to the registry or save it as a reg-file to import:
    Windows Registry Editor Version 5.00
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments]
    "SaveZoneInformation"=dword:00000001
    Where 1 is "do not block downloaded files" and 2 would be "block downloaded files"
    Solution 2:
    Open gpedit.msc and browse to User Configuration > Administrative Templates > Windows Components > Attachment Manager. Enable "Do not preserve zone information in file attachments".
    Seems no reboot is required.
    More info here https://support.microsoft.com/kb/883260

  • How to open a zip file of photos on Mac Book Pro when it cannot find or fix alias

    I do a home photo editing business.  One of a my clients sent me a disc that she zipped to compress because there were a lot of pictures on it.  When I try to open it on my Mac Book Pro I keep getting an error message that it cannot find alias and what program do I want to use to open it.  It also gives me an option to "fix alias" but it doesn't seem to work.  What am I doing wrong?  Why can't I open zip files on my Mac Book Pro?  I should probably mention that the client also uses a Mac Book Pro and her pictures were in her iPhoto before she zipped them on a disc.
    Thanks for your help!!!

    I did copy it to my desktop, but it still won't let me open it.  I think the file on the disc might be corrupt or something like that though the cd itself checks out fine as far as viruses go.  I was able to verify the disc, but that's about it.  My husband tried it on his iMac and we have the same issue.  It's unzipping the folder, but won't let us open the folder on both the Mac Book Pro or the iMac by double clicking, going to file/open or right clicking.  It just keeps saying the same message as I posted above.  I think I'm just going to have the client put the pictures on either a memory card or a USB memory stick so she won't have to compress the files for zipping purposes.  It's been too frustrating trying to open this folder on this cd she gave me.  She said she created/zipped the cd on her Mac Book Pro but it sure won't open on mine.

  • Cannot extract Zip file with Winzip after zipping with java.util.zip

    Hi all,
    I write a class for zip and unzip the text files together which can be zip and unzip successfully with Java platform. However, I cannot extract the zip file with Winzip or even WinRAR after zipping with Java platform.
    Please help to comment, thanks~
    Below is the code:
    =====================================================================
    package myapp.util;
    import java.io.* ;
    import java.util.TreeMap ;
    import java.util.zip.* ;
    import myapp.exception.UserException ;
    public class CompressionUtil {
      public CompressionUtil() {
        super() ;
      public void createZip(String zipName, String fileName)
          throws ZipException, FileNotFoundException, IOException, UserException {
        FileOutputStream fos = null ;
        BufferedOutputStream bos = null ;
        ZipOutputStream zos = null ;
        File file = null ;
        try {
          file = new File(zipName) ; //new zip file
          if (file.isDirectory()) //check if it is a directory
         throw new UserException("Invalid zip file ["+zipName+"]") ;
          if (file.exists() && !file.canWrite()) //check if it is readonly
         throw new UserException("Zip file is ReadOnly ["+zipName+"]") ;
          if (file.exists()) //overwrite the existing file
         file.delete();
          file.createNewFile();
          //instantiate the ZipOutputStream
          fos = new FileOutputStream(file) ;
          bos = new BufferedOutputStream(fos) ;
          zos = new ZipOutputStream(bos) ;
          this.writeZipFileEntry(zos, fileName); //call to write the file into the zip
          zos.finish() ;
        catch (ZipException ze) {
          throw ze ;
        catch (FileNotFoundException fnfe) {
          throw fnfe ;
        catch (IOException ioe) {
          throw ioe ;
        catch (UserException ue) {
          throw ue ;
        finally {
          //close all the stream and file
          if (fos != null)
         fos.close() ;
          if (bos != null)
         bos.close();
          if (zos != null)
         zos.close();
          if (file != null)
         file = null ;
        }//end of try-catch-finally
      private void writeZipFileEntry(ZipOutputStream zos, String fileName)
          throws ZipException, FileNotFoundException, IOException, UserException {
        BufferedInputStream bis = null ;
        File file = null ;
        ZipEntry zentry = null ;
        byte[] bArray = null ;
        try {
          file = new File(fileName) ; //instantiate the file
          if (!file.exists()) //check if the file is not exist
         throw new UserException("No such file ["+fileName+"]") ;
          if (file.isDirectory()) //check if the file is a directory
         throw new UserException("Invalid file ["+fileName+"]") ;
          //instantiate the BufferedInputStream
          bis = new BufferedInputStream(new FileInputStream(file)) ;
          //Get the content of the file and put into the byte[]
          int size = (int) file.length();
          if (size == -1)
         throw new UserException("Cannot determine the file size [" +fileName + "]");
          bArray = new byte[(int) size];
          int rb = 0;
          int chunk = 0;
          while (((int) size - rb) > 0) {
         chunk = bis.read(bArray, rb, (int) size - rb);
         if (chunk == -1)
           break;
         rb += chunk;
          }//end of while (((int)size - rb) > 0)
          //instantiate the CRC32
          CRC32 crc = new CRC32() ;
          crc.update(bArray, 0, size);
          //instantiate the ZipEntry
          zentry = new ZipEntry(fileName) ;
          zentry.setMethod(ZipEntry.STORED) ;
          zentry.setSize(size);
          zentry.setCrc(crc.getValue());
          //write all the info to the ZipOutputStream
          zos.putNextEntry(zentry);
          zos.write(bArray, 0, size);
          zos.closeEntry();
        catch (ZipException ze) {
          throw ze ;
        catch (FileNotFoundException fnfe) {
          throw fnfe ;
        catch (IOException ioe) {
          throw ioe ;
        catch (UserException ue) {
          throw ue ;
        finally {
          //close all the stream and file
          if (bis != null)
         bis.close();
          if (file != null)
         file = null ;
        }//end of try-catch-finally
    }

    Tried~
    The problem is still here~ >___<
    Anyway, thanks for information sharing~
    The message is:
    Cannot open file: it does not appear to be a valid archive.
    If you downloaded this file, try downloading the file again.
    The problem may be here:
    if (fos != null)
    fos.close() ;
    if (bos != null)
    bos.close();
    if (zos != null)
    zos.close();
    if (file != null)
    file = null ;
    The fos is closed before bos so the last buffer is not
    saved.
    zos.close() is enough.

  • Cannot use winzip to unzip the zip file zipped by java.util.zip

    Hi all,
    I use the followcode to create a zip file, and i downlaod it and try to use winzip to unzip this file but fail. The path is correct and i got the zip file. but it just cannot unzip.
    pls help
    thanks alot.
    Kin
              int count = 0;
              count = ContentDocuments.size();
              for (int i = 0; i < bb; i++)     {
                   System.out.println(filenames[i] + "");
              // Create a buffer for reading the files
              byte[] buf = new byte[10*1024*1024];
              try {      
                   String outFilename = MyDir + "zipfile/" + getContentID2()+".zip";
                   System.out.println("outFilename = " + outFilename);
                   ZipOutputStream out = new ZipOutputStream(new FileOutputStream(outFilename));
                   for (int i=0; i<filenames.length; i++) {           
                        FileInputStream in = new FileInputStream(filenames);
                        out.putNextEntry(new ZipEntry(filenames[i]));
                        int len;
                        while ((len = in.read(buf)) != -1) {               
                             out.write(buf, 0, len);
                        out.closeEntry();
                        in.close();
                   out.close();
              } catch (IOException e)     {
                   System.err.println("zipprocess " + e.getMessage());

    I've written a replacement zip file creator class. Not much tested but it seems to work, however I've yet to try it with the version of WINZIP that rejected my previous attempts. Oh, and the stored dates are garbage.
    * ZipOutputFile.java
    * Created on 25 March 2004, 13:08
    package zip;
    import java.io.IOException;
    import java.nio.ByteBuffer;
    * <p>Creates a ZIP archive in a file which WINZIP should be able to read.</p>
    * <p>Unfortunately zip archives generated by the standard Java class
    * {@link java.util.zip.ZipOutputStream}, while adhering to PKZIPs format specification,
    * don't appear to be readable by some versions of WinZip and similar utilities. This is
    * probably because they use
    * a format specified for writing to a non-seakable stream, where the length and CRC of
    * a file is writen to a special block following the data. Since the length of the binary
    * date is unknown this makes an archive quite complicated to read, and it looks like
    * WinZip hasn't bothered.</p>
    * <p>All data is Deflated. Close completes the archive, flush terminates the current entry.</p>
    * @see java.util.zip.ZipOutputStream
    * @author  Malcolm McMahon
    public class ZipOutputFile extends java.io.OutputStream {
        byte[] oneByte = new byte[1];
        java.io.RandomAccessFile archive;
        public final static short DEFLATE_METHOD = 8;
        public final static short VERSION_CODE = 20;
        public final static short MIN_VERSION = 10;
        public final static int  ENTRY_HEADER_MAGIC = 0x04034b50;
        public final static int  CATALOG_HEADER_MAGIC = 0x02014b50;
        public final static int  CATALOG_END_MAGIC = 0x06054b50;
        private final static short DISC_NUMBER = 0;
        ByteBuffer entryHeader = ByteBuffer.wrap(new byte[30]);
        ByteBuffer entryLater = ByteBuffer.wrap(new byte[12]);
        java.util.zip.CRC32 crcAcc = new java.util.zip.CRC32();
        java.util.zip.Deflater def = new java.util.zip.Deflater(java.util.zip.Deflater.DEFLATED, true);
        int totalCompressed;
        long MSEPOCH;
        byte [] deflateBuf = new byte[2048];
        public static final long SECONDS_TO_DAYS = 60 * 60 * 24;
         * Entry stores info about each file stored
        private class Entry {
            long offset;        // position of header in file
            byte[] name;
            long crc;
            int compressedSize;
            int uncompressedSize;
            java.util.Date date;
             * Contructor also writes initial header.
             * @param fileName Name under which data is stored.
             * @param date  Date to label the file with
             * @TODO get the date stored properly
            public Entry(String fileName, java.util.Date date) throws IOException {
                name = fileName.getBytes();
                this.date = date == null ? new java.util.Date() : date;
                entryHeader.position(10);
                putDate(entryHeader);
                entryHeader.putShort(26, (short)name.length);
                offset = archive.getFilePointer();
                archive.write(entryHeader.array());
                archive.write(name);
                catalog.add(this);
                crcAcc.reset();
                totalCompressed = 0;
                def.reset();
             * Finish writing entry data. Save the lenghts & crc for catalog
             * and go back and fill them in in the entry header.
            public void close() throws IOException {
                def.finish();
                while(!def.finished())
                    deflate();
                entryLater.position(0);
                crc = crcAcc.getValue();
                compressedSize = totalCompressed;
                uncompressedSize = def.getTotalIn();
                entryLater.putInt((int)crc);
                entryLater.putInt(compressedSize);
                entryLater.putInt(uncompressedSize);
                long eof = archive.getFilePointer();
                archive.seek(offset + 14);
                archive.write(entryLater.array());
                archive.seek(eof);
             * Write the catalog data relevant to this entry. Buffer is
             * preloaded with fixed data.
             * @param buf Buffer to organise fixed lenght part of header
            public void writeCatalog(ByteBuffer buf) throws IOException {
                buf.position(12);
                putDate(buf);
                buf.putInt((int)crc);
                buf.putInt(compressedSize);
                buf.putInt(uncompressedSize);
                buf.putShort((short)name.length);
                buf.putShort((short)0);  // extra field length
                buf.putShort((short)0);  // file comment length
                buf.putShort(DISC_NUMBER);  // disk number
                buf.putShort((short)0); // internal attributes
                buf.putInt(0);      // external file attributes
                buf.putInt((int)offset); // file position
                archive.write(buf.array());
                archive.write(name);
             * This writes the entries date in MSDOS format.
             * @param buf Where to write it
             * @TODO Get this generating sane dates
            public void putDate(ByteBuffer buf) {
                long msTime = (date.getTime() - MSEPOCH) / 1000;
                buf.putShort((short)(msTime % SECONDS_TO_DAYS));
                buf.putShort((short)(msTime / SECONDS_TO_DAYS));
        private Entry entryInProgress = null; // entry currently being written
        private java.util.ArrayList catalog = new java.util.ArrayList(12);  // all entries
         * Start a new output file.
         * @param name The name to store as
         * @param date Date - null indicates current time
        public java.io.OutputStream openEntry(String name, java.util.Date date) throws IOException{
            if(entryInProgress != null)
                entryInProgress.close();
            entryInProgress = new Entry(name, date);
            return this;
         * Creates a new instance of ZipOutputFile
         * @param fd The file to write to
        public ZipOutputFile(java.io.File fd) throws IOException {
            this(new java.io.RandomAccessFile(fd, "rw"));
         * Create new instance of ZipOutputFile from RandomAccessFile
         * @param archive RandomAccessFile
        public ZipOutputFile(java.io.RandomAccessFile archive) {
            this.archive = archive;
            entryHeader.order(java.nio.ByteOrder.LITTLE_ENDIAN);  // create fixed fields of header
            entryLater.order(java.nio.ByteOrder.LITTLE_ENDIAN);
            entryHeader.putInt(ENTRY_HEADER_MAGIC);
            entryHeader.putShort(MIN_VERSION);
            entryHeader.putShort((short)0);  // general purpose flag
            entryHeader.putShort(DEFLATE_METHOD);
            java.util.Calendar cal = java.util.Calendar.getInstance();
            cal.clear();
            cal.set(java.util.Calendar.YEAR, 1950);
            cal.set(java.util.Calendar.DAY_OF_MONTH, 1);
    //        def.setStrategy(Deflater.HUFFMAN_ONLY);
            MSEPOCH = cal.getTimeInMillis();
         * Writes the master catalogue and postamble and closes the archive file.
        public void close() throws IOException{
            if(entryInProgress != null)
                entryInProgress.close();
            ByteBuffer catEntry = ByteBuffer.wrap(new byte[46]);
            catEntry.order(java.nio.ByteOrder.LITTLE_ENDIAN);
            catEntry.putInt(CATALOG_HEADER_MAGIC);
            catEntry.putShort(VERSION_CODE);
            catEntry.putShort(MIN_VERSION);
            catEntry.putShort((short)0);
            catEntry.putShort(DEFLATE_METHOD);
            long catStart = archive.getFilePointer();
            for(java.util.Iterator it = catalog.iterator(); it.hasNext();) {
                ((Entry)it.next()).writeCatalog(catEntry);
            catEntry.position(0);
            catEntry.putInt(CATALOG_END_MAGIC);
            catEntry.putShort(DISC_NUMBER);
            catEntry.putShort(DISC_NUMBER);
            catEntry.putShort((short)catalog.size());
            catEntry.putShort((short)catalog.size());
            catEntry.putInt((int)(archive.getFilePointer() - catStart));
            catEntry.putInt((int)catStart);
            catEntry.putShort((short)0);
            archive.write(catEntry.array(), 0, catEntry.position());
            archive.setLength(archive.getFilePointer());  // truncate if old file
            archive.close();
            def.end();
         * Closes entry in progress.
        public void flush() throws IOException{
            if(entryInProgress == null)
                throw new IllegalStateException("Must call openEntry before writing");
            entryInProgress.close();
            entryInProgress = null;
         * Standard write routine. Defined by {@link java.io.OutputStream}.
         * Can only be used once openEntry has defined the file.
         * @param b  Bytes to write
        public void write(byte[] b) throws IOException{
            if(entryInProgress == null)
                throw new IllegalStateException("Must call openEntry before writing");
            crcAcc.update(b);
            def.setInput(b);
            while(!def.needsInput())
                deflate();
         * Standard write routine. Defined by {@link java.io.OutputStream}.
         * Can only be used once openEntry has defined the file.
         * @param b  Bytes to write
        public void write(int b) throws IOException{
            oneByte[0] = (byte)b;
            crcAcc.update(b);
            write(oneByte, 0, 1);
         *  Standard write routine. Defined by {@link java.io.OutputStream}.
         * Can only be used once openEntry has defined the file.
         * @param b  Bytes to write
         * @param off Start offset
         * @param len Byte count
        public void write(byte[] b, int off, int len) throws IOException{
            if(entryInProgress == null)
                throw new IllegalStateException("Must call openEntry before writing");
            crcAcc.update(b, off, len);
            def.setInput(b, off, len);
            while(!def.needsInput())
                deflate();
        * Gets a buffer full of coded data from the deflater and writes it to archive.
        private void deflate() throws IOException {
            int len = def.deflate(deflateBuf);
            totalCompressed += len;
            if(len > 0)
                archive.write(deflateBuf, 0, len);

  • I cannot open mp3 files I received from a purchased download. They are in a .zip file but no matter what I do, they cannot be opened. Please help.

    I have right clicked and selected open, and the loading ring shows but nothing happens. I have also extracted the files, opened them in itunes and windows media player. (cannot be accesed in itunes or wmp)

    With ZIP files, extract was your best bet. Do the players report that the file is corrupted, or zero length?? You may need to check with the seller on whether the ZIPs downloaded correctly or see whether you can get another format.
    You also could try downloading again using Internet Explorer, if they allow that.

  • Cannot download zip file

    Why is it that with Firefox 8 I cannot download a zip file that was sent to me as an e-mail attachment? When I select the zip file a pop asks me if I want to 'open with' or 'save file'. Whichever option I choose the file is named attachment.ashx (this is not the name of the zip file I received).
    The only way I have been able to resolve the problem so far is to open the e-mail using Windows Explorer, from which I can retrieve the zip file correctly.

    I have the same problem since updating to Firefox 8 on my MacBook Pro. Now all files download as .ashx, sometimes I can open them via Word, but often they won't open at all. Previous versions of Firefox opened them in the appropriate application and saved them to the desktop. This has become such a problem that I have abandoned Firefox and have returned to Safari .....

Maybe you are looking for

  • ShipMent and Delivery Extractor

    Can somebody explain the differences between shipment extractors and Delivery Extractors (SD). when exactly we use shipment and when 2lis_12_vchdr or itm. If anybody has document on shipment please mail it <b>[email protected]</b> Regards Kunal

  • Help needed regarding change of system CLASSPATH

    Hi All, I need to change the system CLASSPATH using my java programe. I tried the following code but its not working though it returns the correct CLASSPATH, but unable to do the modification. All I need is to append a new jar file in the existing CL

  • How do I modify a user-defined function in SQL Plus

    I have created some functions in my database. Can anybody tell me how to modify/edit those functions?

  • Problem in custom jsp page when pressing enter button

    Hi to all, <pre> I am created a cutom jsp page. When i am clicking on a button it working fine, but if i am pressing Enter key it redirecting to home page and showing an exception in cosole. <b>Exception is </b> 18:00:50,718 ERROR [WEBAPP] Class/Meth

  • Howto highlight text

    I just started serious with pages09 and can find, howto highlight (yellow) text parts in a document