Download Zip large files

I want to download a large zip file (ranging from 10 MB to 20 MB). Miss me probably just something really simple, but if I try to get it back as an inputstream and do something with it, I just get a time-out exception.

HttpConnection connection = null;
    ZipArchive archive = null;
    InputStream fis = null;
    try {
        connection = (HttpConnection)Connector.open(URL + "/Bryce_Canyon_National_Park.zip;");
        //HTTP Request

          connection.setRequestMethod(HttpConnection.GET);
          connection.setRequestProperty("Content-Type","//text");
          connection.setRequestProperty("Connection", "close");
          if (connection.getResponseCode() == HttpConnection.HTTP_OK)
          {
            fis = connection.openDataInputStream();
            if(fis != null){
                archive = new ZipArchive(fis);
                archive.readEntries();
            }else{
                UiApplication.getUiApplication().invokeLater(new Runnable(){
                    public void run(){
                        Dialog.alert("Inputstream is null");
                    }
                });
            }
          }

        if(fis != null){
            archive = new ZipArchive(fis);
            archive.readEntries();
        }else{
            UiApplication.getUiApplication().invokeLater(new Runnable(){
                public void run(){
                    Dialog.alert("Inputstream is null");
                }
            });
        }
    }

As shown in the code I just need to use the input stream to create a ZipArchive, when I swell the zip file and save it to the device.

Any help would be great, thanks.

Maybe you should try to use DownloadCombiner check out this sampe:

http://supportforums.BlackBerry.com/T5/Java-development/request-entity-too-large/m-p/177227#M22170

Tags: BlackBerry Developers

Similar Questions

  • Time Capsule freezes when I'm downloading a large file!

    Hello everyone!

    I have a very unpleasant problem with my Apple Time Capsule 2 TB 5th generation.

    I have 2 Iphones, AppleTV and 2 Macs in my wifi network, everything works great! But when I download a large file with an Internet torrent falls after 10-15 minutes... a green LED shine on the Time Capsule, Airport utility tells that is connected to the internet, but not of my devices has the internet connection. It lasts 15 to 20 minutes and internet recovers by itself. Nothing really helps with this, I tried to restart, change the settings, but nothing helped.

    WITNESS, no errors, once again, green is connected to the internet but no internet.

    My cable modem works, if I connect my appleTV to the modem cable through the cable, it will be the connection. At the same time, if I connect my appleTV to the Capsule of time via the cable when it is frozen, appleTV won't have any connection.

    The same story if I download to the hard drive of my Mac or time Capsule.

    I have an idea that Time Capsule is overheating, but again, I don't see no error.

    I'd appreciate any help!

    Torrents can overwhelm the NAT to a router table.

    In the torrent client reduce the speed and the number of seeds.

    Which modem cable do you have?

    Looks like it's a gateway device not a pure modem so the TC may be in evil mode?

    Also, who is your ISP?

    If they are moved to IPv6 which can also introduce issues.

  • How to download a large file using 4 G

    Whenever I have try and download a larger file on YouTube on wifi phone stops me and says that I need wifi to do this. It allows me to do using 4 G. How can I get to enable this?

    I had the problem to sending a video by selecting youtube my Gallery but after I downloaded a video using the youtube app, I am now able to download on youtube of the gallery. Thanks for your help.

  • Not able to download a large file on BB9300.

    Hi all

    In my BB app, I download files from major media including the size > 5 MB.

    I use BB 9300 device to test.

    I'm following the same procedure as in

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800431/How_To _...

    I make exception after you download the file of 3 MB.

    Description of the exception as "file exceeds the maximum size of the destination file or is too large for the system.

    Does anyone have an idea why this exception comes?

    Thanks in advance.

    -Shekhar.

    If you are looking for tour you will find that other people commented on the limited size of Bank on some devices, assuming the unit has even it.  I think that you can not put your data here, you have to put on SD card.  I'm sorry.

  • Download of large files

    Hello

    I do download multipart (range based), but always connection dies to halfway or after downloading first chunk with - "received tcp timed out!"

    In addition,

    -What should be the ideal "chunksize' to download at once?

    - and what is the optimum don't. bytes read from the InputStream of the connection?

    Thank you

    Mukesh

    "Now, when reading, in the latest iteration, if the data in the input stream is less than the length of the array readBlock then I get"tcp receive timed out.

    This is perhaps due to a possible bug in your code.  I think you should break the loop whenever you do not receive a full buffer, rather than just for the-1.  So if you get 255 bytes, instead of 512 MB, I think it means that there is no additional data.  So if you run another reading later, then treatment is waiting for your server to send another piece, which of course, he does not, then you get expired.

    Just a thought.

  • I got 'Firefox out of the html5 offline storage space' error message download large files

    I got this message when I try to download a large file from a Web site, after a few GB have been downloaded.
    The site is a "cloud storage" with their own method of downloading, so it's not an error in Firefox, but perhaps I can fix it through some configurations. I tried to change some words: the configuration settings, but it does not work.
    Please, I need to know how to increase this space, or if there is a way to clear this cache without closing the browser (I see the partial file, I am downloading to grow up in a personal folder outside the temporary folders in Firefox, so I think that the cache is not necessary after all).
    Thanks in advance.

    See:

    Firefox has no limit on the size of the IndexedDB database. The UI will just ask permission to store BLOBs larger than 50 MB. This quota of size can be customized through the dom.indexedDB.warningQuota preference

  • Remote hp AIO cannot retrieve or download the scanned file

    I scanned with my Ipad a big file as a result of more than 35 MB.

    I can't get the digital file download does not work (I tried with Google Drive and Dropbox). I don't know if the problem is wireless, the ipad or the software.

    I thought that I ignore this problem and just connect my Ipad to my Windows 7 desktop computer and download the file directly. Couldn't be more reasonable.

    But when I connect the Ipad files scanned locally on AIO HP Remote does not show up on Itunes.

    My files are caught in the trap in the ipad. Any help please?

    Thank you

    Hi and thanks for your response.

    Yes, what you hear is correct.

    I looked at other options you say (not for rescan in small pieces, however, is too long and too busy). I continued to try. Finally, at one point I had a suspicion on the automatic locking of the Ipad since I don't have any message of error on the HP software.

    So I disabled the lock and try again. It worked!

    Maybe HP could think to disable automatic locking when downloading a large file. If it does not already exist, as they might consider a way to download locally since the Ipad to another device via a cable ([Yes, they still exist:-]!).

    Thank you

  • Cannot download emails pdf files using Internet Explorer.

    Original title: Internet Explorer

    Outlook and Internet Explorer will not allow downloads even starting from the Microsoft Web Site.

    Will not download Zip, PDF file of email

    Can go to GOOGLE and open Outlook, and then it will download.

    Won't allow Bing become the home page.

    Just says cannot download.

    Microsoft should want to solve this problem.

    Hi Larry,

    Sorry for the late reply.

    To solve the problem with Internet Explorer and outlook.com downloads.

    I suggest to disable the Antivirus software on your computer and test the issue.

    When you disable Antivirus:

    Important note: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attacks.

    For most Antivirus programs, there is an icon next to the clock in the taskbar, you should be able click on icon and either be able to disable it from there or you can go into the options and disable it.

    Note: If the problem persists, you can activate your Antivirus program.

    You can also test the issuance by uninstall and then reinstall the Antivirus program.

    Note: Uninstall the antivirus before you that you saved the license key for this.

    Please follow the suggestion above and let us know the status of the issue.

  • Very large file upload > 2 GB with Adobe Flash

    Hello, anyone know how I can download very large files with Adobe Flash or how to use SWFUpload?

    Thanks in advance, any help will be much appreciated.

    If the error comes from php there is a server limit, not a flash limit.

    you will need to edit your php.ini or .htaccess file download limit.

  • If I switch to larger storage can I download large files

    If I switch to larger storage can I download large files - I need to store a chest of 10 GB

    Hello

    If you maximize your storage space, then you could upload larger files.

    Reference: Memory and storage http://windows.microsoft.com/en-US/windows7/memory-and-storage

    (For Vista)

    Hope this information is useful.

  • Am I duplicating music clip-zip when I download the entire file of MUSIC from Windows Media?

    On my Zip Clip with a micro 32 card: using Windows Media, I downloaded my whole 'MUSIC' of the file to the device.   Now that I've added more music in my Windows Media MUSIC file, download the entire file again for "updating" of new music, than i've got, or will I be duplicating what was there before?

    It seems terribly painful to have to selectively add new music, checking back & comes to see what is already uploaded on the Clip-Zip.

    If you use the 'sync' feature in WMP, it will add only what is new or changed in your music on your computer folder. Note that this method is a double-edged sword; It will also remove all the files that you may have removed the record music from your computer. This is not a good thing.

  • on the large file download problem. Pls help. Thank you very much

    Hello.

    My application got a function is the downloading of files. App works when I download a small file (like a video (4 MB)).

    But had a problem about large file download.

    1. when I try to open a video file (size: 30 MB) use the code below, it cost much too much time to open it, how to optimize? :

               FileConnection fc = (FileConnection) Connector.open("file:///" + filePath);
                InputStream is = fc.openInputStream();
                ByteArrayOutputStream baos = new ByteArrayOutputStream();
                int j = 0;
                while((j=is.read()) != -1) {
                    baos.write(j);
                }
                postdata = baos.toByteArray();
    

    2. What is the file size limitation in by Httpconnection? HTTPConnection may transfer a large file (like 30MB video)?

    Any smaple can share to me?

    Thank you very much.

    In addition to what maghue gave you, I would recommend you rework your logic so that you don't send a 30 MB of data in a single shipment.  That's a lot of have to fire if it fails and this defect, especially on a WiFi connection not, chances are high enough, that I would have thought given the time it will take.

    In addition, the approach you've taken means that you have a buffer of 30 MB, as the transport mechanism to send the file.  You could reduce the memory required by a small segment of both reading and write in the http connection output stream, but that will always force the http connection to have a 30 MB buffer, which may have to be contiguous (depending on how it is implemented).  Normally transmission is not made until you ask the response code, so it will be stamped on the device.

  • Download large files from the internet

    I can't download large files from the internet in Windows 7 to SBS 2003 domain. What is the solution?

    Hello

    Thanks for giving an opportunity to help you with your concern for Windows to Microsoft Community!
     

    The question you have posted is better suited for the TechNet forums. I suggest you to report the issue in the following link for assistance:

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

    I hope that helps!

    If you need help on Windows please keep us informed.

     
     
    We will be happy to help you!
  • Adobe premium suite 10 windows... downloaded 2 files, an .exe file and a stuffed larger file support... said put them both in the same folder

    Windows... confussion... Adobe premium suite 10 windows... downloaded 2 files, an .exe file and a stuffed larger file support... told to put them both in the same folder... and

    then what? Should be a folder. For most people to file no is hard enough. so don't tell where to put the file... or for

    First open...

    OK... you Win10... what version of the Adobe software you download?

    In general, when the download page says to download two "associates" of files, you RUN the exe file and it does the rest... that's why both files must be in the same folder

    Download & install instructions https://forums.adobe.com/thread/2003339 can help

    Also go to https://forums.adobe.com/community/creative_cloud/creative_cloud_faq

  • Intel Centrino Advanced N6200 AGN wifi hangs Envy 17 whenever I try to download large files.

    I have a brand new 3D Envy17 Win7 Professional x 64.  First of all, I noticed a problem trying to download a movie on iTunes and has spent a week relocation/installation/configuration iTunes thinking that was the problem.  Then, I tried to make a transfer of internal file between 2 PCs on my network and the locked up HP.  I understand that any time I try to transfer a large file (~ 1 GB + /), the download speed starts to slow down and then the machine freezes forcing me to do a hard reboot.  It's absolutely maddening!  There is no warning and no error message.  Only, it does more (hardware and software).

    I seem to have the most recent driver.  I played a bit with the settings of the adapter and even on my router (which works very well with all the other material on the network).

    If it's a hardware failure, I think it would be more erratic and lock up regardless of the size of the file?  Nothing special on the PC; MS Office 10, Adobe X, iTunes, Quickent, etc.

    I tried to remove and reinstall the driver and anything else I can find loading thath looks like it passes through wifi, including disabling the driver for wifi miniport Ms.

    I am at a total loss.  Admittedly, this is not characteristic of one of the high-end of HP PC?  Help!

    Hi, I encountered the same problem, and after trying several different driver versions I finally found the 13.1.1.1 driver works for me. No more broken downloads and gels!

    Here is the link: http://www.wireless-driver.com/intel-centrino-6300-6200-windows-driver-software/

    I registered just to share the solution with you, hope it helps!

Maybe you are looking for

  • IPad 2 running slow and erratic

    I have a 2 64 g ipad it is two third full but is unresponsive and erratic at times. A factory reset would be worth trying, if yes, what should I do to get back the information later. It is updated to the last update.

  • MO does not see my HD Mactor. But before...

    Hello I have 1 TB HD Mactor. And I used it as TimeMachine for a long time. But after the last software update, MacBook started does not see the external hard drive. And he said: "the disk you inserted is not readable by this computer. What can I do?

  • 9.3 ISO unable to download

    Dear Apple team I couldn't update / download version 9.3 m It says check so far... and that it is impossible to check the update iSO 9.3 failure of verification because you are more connected to the internet. wherever I checked I m connected to wifi.

  • Satellite Pro L40 PSL43E wlan driver for Windows XP

    I need a driver for Windows XP wireless lanSatellite Pro L40 PSL43EI can't found. or what should I do my WiFi to work with Windows XP? Ty ACO

  • Migration from XP to Win 7 - real answer in terms please.

    I'm on XP Pro today (SP3), I read a lot of opinions, but I have no confidence that just bought an upgrade will take me to Winu7 of XP.  I don't mind install my programs and Office 2010.  I do not fear given the wrong information.  Can someone tell me