What is the max size of a zip file with the JDK1.5 ?

Hello everybody,
I'm a french student and for a project, I need to create a zip file, but I don't know in advance the number and the size of files to include in my zip.
I wish to know if someone have the answer to my question : what is the max size of a zip file with the JDK1.5 ? I believe that with the JDK1.3, the limit size of a zip was about 2Go, wasn't ?
Thank you for all answer !
Good day !
PS : sorry for my very poor english ;-)

Here is all I have found for the moment :
...Okay, what about my suggestion of creating your own 10GB file?
Try this:import java.io.File;
import java.io.RandomAccessFile;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
import java.util.Random;
class Main {
    public static void main(String[] args) {
        long start = System.currentTimeMillis();
        int mbs = 1024;
        writeFile("E:/Temp/data/1GB.dat", mbs);
        long end = System.currentTimeMillis();
        System.out.println("Done writing "+mbs+" MB's to disk in "+
                ((end-start)/1000)+" seconds.");
    private static void writeFile(String fileName, int numMegaBytes) {
        try {
            int numBytes = numMegaBytes*1024*1024;
            File file = new File(fileName);
            FileChannel rwChannel =
                    new RandomAccessFile(file, "rw").getChannel();
            ByteBuffer buffer = rwChannel.map(
                    FileChannel.MapMode.READ_WRITE, 0, numBytes);
            Random rand = new Random();
            for(int i = 1; i <= numMegaBytes; i++) {
                for(int j = 1; j <= 1024; j++) {
                    byte[] bytes = new byte[1024];
                    rand.nextBytes(bytes);
                    buffer.put(bytes);
            rwChannel.close();
        } catch(Exception e) {
            e.printStackTrace();
}On my machine it took me 43 seconds to create a 1GB file, so it shouldn't take too long to create your own 10GB. Then try zipping that file.
Good luck.

Similar Messages

  • What application can you use to open a file with the .acc extension?

    What application can you use to open a file with the .acc extension?

    http://www.fileinfo.com/extension/acc

  • I have a problem with the mac can not read video files with the extension IMOD. How can I solve this problem?

    I have a problem with the mac can not read video files with the extension IMOD. How can I solve this problem?

    By doing a Google search. 

  • Automating the process of comparing two PDF file with the help of QTP(Automation Testing Tool)

    Can anybody help me with comparing the two pdf files with the help of QTP.I have Adobe Acrobat installed on my system and i have access to the API.
    Thanks,
    Varun Saini

    I want to find out more about QTP and API. Maybe that is what I want to compare two mechanical drawings for differences between them. (see “More than one pdf file in one window”. Is that what you are looking to do? 9Not necessarily mechanical drawings but some other pdf).

  • Open zip file with the OPEN DATASET statement.

    How?
    The zip file is a text file compressed.
    Thanks for answers.

    in application server no ZIP files exist...as such flat files exist which can be read using DATASET concept.

  • What is the max size of a mp3 file you can add to an RSS feed?

    I am working on adding a mp3 file to my website with an RSS
    feed. I want to use it for a podcast. I am new to the xml language
    and was using a freeware program to generate the script but it will
    only let me upload a file around 10MB. My mp3 file is around 45MB.
    Is this going to be too big of a file that will need to be broken
    down or is there another way to do it? Does dreamweaver have
    preformatted templates to make pages needed for podcasts? Thanks
    for your time.

    I don't understand. Why (or how) would you want to embed a
    binary format in an xml file? What problem could this possibly
    solve?

  • What is the max size of HDD I can use in my dc7600 CMT

    I am using an HP dc7600 CMT which is working fine after upgrading to a Samsung 128GB SSD, Intel Pentium D 3.4 GHz, 4GB RAM, and an AMD Radeon HD 6450. I am running Win 8.1 Pro x64, with the most recent upgrade, and have absolutely no problems. I now want to add a second internal HDD, and wonder what is the max size  I can go to. Can I go to 2TB, or am I limited to a lower figure? 1TB? 500GB? 250GB?
    Will be glad for some help here, especially if it has been actually tried in practice.
    Thanks in advance.
    Best regards
    This question was solved.
    View Solution.

    You're very welcome.
    Yes, they are very nice machines. 
    What a jump in performance when I swapped out the Pentium 4 620 mine had, for the PD 945, and tossed in 4 GB of memory.
    That box will also run the Radeon HD 6570 with no problem too, which is what I put in mine.
    The downside of that model is that there are no settings for ahci or raid.
    I own or have owned every CMT since the d510 with the exception of the dc7900.
    My main PC is now the 8200 Elite CMT which I installed W8.1 on.
    It has an i7-2600 processor and 32 GB of memory, 1 TB SATA III hard drive.
    I threw in a Radeon HD 6670 in that one.
    Best Regards,
    Paul

  • Will Result Cache improve the database performance in 11g? what is the max size of Result Cache?

    Will Result Cache improve the database performance in 11g? what is the max size of Result Cache?

    Thanks for convincing me I really need a new laptop...
    SQL> select /*+ result_cache */ count(*) from emp,emp,emp,emp,emp,emp,emp;
      COUNT(*)
    105413504
    Elapsed: 00:00:52.94
    SQL> select /*+ result_cache */ count(*) from emp,emp,emp,emp,emp,emp,emp;
      COUNT(*)
    105413504
    Elapsed: 00:00:00.01
    SQL> select /*+ result_cache */ count(*) from emp,emp,emp,emp,emp,emp,emp;
      COUNT(*)
    105413504
    Elapsed: 00:00:00.01
    SQL> select count(*) from emp,emp,emp,emp,emp,emp,emp;
      COUNT(*)
    105413504
    Elapsed: 00:00:45.08
    SQL> select count(*) from emp,emp,emp,emp,emp,emp,emp;
      COUNT(*)
    105413504
    Elapsed: 00:01:16.29
    SQL>  select count(*) from emp,emp,emp,emp,emp,emp,emp;
      COUNT(*)
    105413504
    Elapsed: 00:01:18.63
    Message was edited by: Hoek
    The result cache seems to have lagged a bit for the first hintless query..

  • HT201342 what is the max size of attachment that possible to send with icloud email?

    what is the max size of attachment that possible to send with icloud email?

    Welcome to the Apple Community.
    There isn't an attachment size limit as such, the limit applies to the entire message including all attachments, which is 20 MB.
    if you are using a mail application to send emails (ie not via a web browser) you may be subject to smaller limits imposed by your own ISP.

  • Export/Import-SPSIte :- What is the max size limit that can be moved using this command??

    Export/Import-SPSIte :- What is the max size that can be moved using this command??

    I assume you ment Export-SPWeb not Export-SPSite command.
    There is no known limitations in file size, except the compression file size that is set to 24MB by default. If you exceed 24MB, the cmp file will be splitted into several files. You can change the default 24MB value up to 1024MB, using the -compressionsize
    parameter.

  • How do I reduce the size of a Keynote file beyond the reduction of zip?

    Kindly advise.

    How do I reduce the size of a Keynote file beyond the reduction of zip?
    Why do you need it smaller, what size is the file, what's in the file that you think is making it large.
    If your trying to reduce file size to send by e-mail, use a file transfer service instead:  Dropbox.

  • Pdf file is too big (7MB). Need a pdf file with max size 4MB. How to minimize the size of a pdf file?

    pdf file is too big (7MB). Need a pdf file with max size 4MB. How to minimize the size of a pdf file?

    The other alternative is the Save As Other>Reduce File Size. The PDF Optimizer gives you more control. You might also use the audit feature in the PDF Optimizer to see where the size problem is coming from. You might find that in the WORD file you can select and image and then go to the FORMAT (pictures) menu and select compress for all of the bitmaps in the file. That will typically use 150 dpi by default that is adequate for most needs.

  • Replacing the zip drive with the dvd-ram

    I've replaced the built in DVD-RAM with DVD burner.
    I have a zip drive too. Can I to replace the zip drive with the DVD-RAM?
    Thanks

    Hi, mikmik -
    Unless your G4 is a G4 MDD model, doing that is not easy at all.
    The bay for the Zip drive on all G4's earlier than an MDD model is considerably smaller than a standard drive bay, which is what an optical drive needs.
    Open your case and take a look at the relative sizes of the upper optical drive bay and the lower Zip drive bay.
    In order to put replace the Zip drive with an optical drive you would need to do a fair amount of surgery on the frame. It has been done; here's a pictorial step-by-step by one fellow who did that to a B&W G3 -
    http://www.shanescot.com/photos/BW_mod/
    The work needed on a G4 would be very similar to that.

  • I recently upgraded to Yosemite. Yesterday when I opened up the iPhoto (which I have it in my external drive due to the size of file) I get the message that it is not compatible with the new system(or something like that) and ask me to upgrade so I d

    I recently upgraded to Yosemite. Yesterday when I opened up the iPhoto (which I have it in my external drive due to the size of file) I get the message that it is not compatible with the new system(or something like that) and ask me to upgrade so I did. Then another message pops ups and asked for rebuilding the Thumbnails. So I clicked rebuild. Next it asked me to do one of three things(I can't remember all of them) so I chose the last one which is to download a photo to iPhoto. Now I only have that photo I downloaded in iPhoto file but not the rest of my pictures. The iPhoto library which is stored in my EHD shows it has 349GB but it only show one thumbnail of the last picture I downloaded after the rebuild process. What can I do to recover the rest of the file?
    Thanks for your help.
    George Kyaw
    <Email Edited by Host>

    I recently upgraded to Yosemite. Yesterday when I opened up the iPhoto (which I have it in my external drive due to the size of file) I get the message that it is not compatible with the new system(or something like that) and ask me to upgrade so I did. Then another message pops ups and asked for rebuilding the Thumbnails. So I clicked rebuild. Next it asked me to do one of three things(I can't remember all of them) so I chose the last one which is to download a photo to iPhoto. Now I only have that photo I downloaded in iPhoto file but not the rest of my pictures. The iPhoto library which is stored in my EHD shows it has 349GB but it only show one thumbnail of the last picture I downloaded after the rebuild process. What can I do to recover the rest of the file?
    Thanks for your help.
    George Kyaw
    <Email Edited by Host>

  • How can I set the font size of a form field in the fdf file?

    I need to dynamically set the font size of a field to accommodate text of varying length, automatic font size won't work in this case. It seems like this can be done in the FDF but I have tried several variants without success. Could someone help out with a real example of what the syntax in the fdf should look like.
    I am using Acrobat Professional 8.1 but the created fdf will need to work with Reader also.

    I think that the font size has to be set in the form itself, not the FDF.

Maybe you are looking for

  • P_r_request- get_logsys failure when updating InfoObject from InfoObject

    I'm trying to update master data of an InfoObject ZLCLROLE based on another InfoObject 0TCTROLE. I only need the master data local to the local BI system. So in the start routine I set: SOURCE_SYSTEM = p_r_request->get_logsys. to identify the local B

  • Create message with KSOAP...problem?

    Hello to all, me to servere one disperatamente hand�. I have created a message SOAP with KSOAP2�. How I make to obtain a string that it represents message SOAP?

  • Doubt user exit

    Hi All. I need to do some validation in VL10. I found User exits and program for that User exits: V50R_USEREXIT_PREPARE. Program:  RVV50R10C How to procedure with this user exits and program. As my under standing I need take copy of program from RVV5

  • Thumbnail pics used to go to a slide show..now they won't.I haven't changed anything,so what do I do?

    I have a website that sends me thumbnail pics..I used to be able to use a slideshow to view them,but I don't get that option now.I have to download each pic,which takes far to long..I use my hotmail account to view them,but I haven't changed any sett

  • Difficulties submitting to iTunes Connect

    Hello everyone, As of this morning, I am having troubles submitting an iOS app to iTunes connect, either via Xcode 4.5.1 or Application Loader 2.7 running on OSX 10.8.2: I get the dreaded "An error occurred talking to the iTunes Store", along with Xc