Can't get from ServletInputStream to ZipInputStream

Here's a problem that's been bothering me:
I'm trying to set up an import program where I submit a .zip file via POST to a servlet.
I can submit the .zip and read its binary data just fine. I can also open a zip file that's on the server and parse it contents via java.util.zip and ZipImputStream.
For some reason though, I can't go from point A to Point B.
// works
FileInputStream fis = new FileInputStream( "_test.zip" );
ZipInputStream zisImportArchive = new ZipInputStream( fis );
// works
ServletInputStream sis = request.getInputStream();
// doesn't work
ZipInputStream zisImportArchive = new ZipInputStream( sis );
I don't get any errors, but out.println( zisImportArchive); always returns "null" when it's made from the ServletInputStream.
Has anyone run into anything like this before?

Change iTunes Store Country on an iDevice
1. Tap Settings;
2. Tap iTunes & App Stores;
3. Tap View Apple ID;
4. Enter your user name and password;
5. Tap Country/Region;
6. Tap Change Country/Region;
7. Select the region where you will be located;
8. Tap Done.
Also, see How to Change Your iTunes Store Account Location | eHow.com.

Similar Messages

  • Safari was accidentally deleted from hard drive. no trace of it anywhere. How do I get it back Do I have to reload Leopard or can I get from Apple Support page as an update

    Safari was accidentally deleted from hard drive. no trace of it anywhere. How do I get it back Do I have to reload Leopard or can I get from Apple Support page as an update

    You don't need to reinstall Leopard.
    You can reinstall Safari from here >  Safari 5.0.6 for Leopard

  • How can I get from OS X 10.6.8 to OS X 10.8?

    How can I get from OS X 10.6.8 to OS X 10.8?
    I have a 2ghz intel core 2 duo
    4gb 667 mhz DDr2 SDRAM
    I need to download Itunes Producer and It looks like I might not even be able to do it on this machine?
    any help is appreciated, thanks

    Open the Mac App Store and try downloading Mavericks. If you get told it's incompatible, so is Mountain Lion.
    Back up your data before upgrading. Mac OS X 10.7 and newer don't support PowerPC programs such as versions of Microsoft Office prior to 2008.
    (109229)

  • How can I getting from my dvd film into my iPads from mac

    How can i getting my dvd film in my mac into my ipad like as download from my dvd film to put in my ipad 2 ? how

    How can i getting my dvd film in my mac into my ipad like as download from my dvd film to put in my ipad 2 ? how

  • HT201304 Dear what kind of free program can i get from the Apple on line store and i tunes?

    Dear gent.
    kindly i would like to get a dvice how can i get the free program either Apple on line store or I tunes?
    Best Regards,

    There are many free Apps. DO a search for them on the app store.

  • Since update to V12 & Now V18 can't get from sprint account page to billpay page works under IE

    gets to Sprint.com My Account site no problem but trying to go form there to the Pay Bill get a constant "Transferring Data" .
    Stopping the load by selecting the "Stop Loading X" and the Back Arrow goes back to the My Account site.
    Stopping the load by the back arrow displays the Pay Bill Site momentarily then returns to the My Account site.
    Breaking the internet connection while trying to load brings up the Pay Bill site. It looks like Fire Fox is looking for something to finish the load that it is not getting from the Pay Bill site.
    This works properly using IE

    I wonder whether it's a coincidence. When I try to load my statement from myaccountportal.sprint.com the throbber just spins and spins. One time when I reloaded using Ctrl+Shift+r to bypass cached files the page flashed before my eyes, but then cleared. Hmmm...

  • How many images per sec can I get from ImageIO.read(url) ??????

    Hello,
    In my program I read images from a url...I'm wondering how many images I can get with ImageIO.read(url) per second..
    Hereby is the code that I'm using:
    import java.awt.*; //Contains all of the classes for creating user interfaces and for painting graphics and images
    import java.awt.event.*;//Provides interfaces and classes for dealing with different types of events fired by AWT components
    import java.awt.image.*;//Provides classes for creating and modifying images
    import java.io.*;//Provides for system input and output through data streams, serialization and the file system
    import java.net.URL;
    import javax.imageio.*;//The main package of the Java Image I/O API.
    import javax.swing.*;//Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
    import java.text.*;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    public class getPic extends Component{
    private BufferedImage img;
        static int n=0;
        private URL url;
        private DateFormat dateFormat;
        private Date date;
        private String s;
        private String str1= ".jpeg";
        private String str2="C:\\Users\\";
        private String str3;
        private String str4;
          public getPic() {
         try {
                  url = new URL("http://"); //a url that gives a real-time image
                  img = ImageIO.read(url);
                } catch (IOException e) {
               System.err.println("Unable to read file");
    public void savePic(){
    try{
    n++;
    str3=str2.concat(Integer.toString(n-1));
                        str4=str3.concat(str1);
                        ImageIO.write(img, "jpeg" , new File(str4));
                    } catch(IOException e) {
                      System.err.println("Unable to output results");
    @Override
        public Dimension getPreferredSize() {
            if (img == null) {
               return new Dimension(100,100);
            } else {
               return new Dimension(img.getWidth(), img.getHeight());
        @Override
          public void paint(Graphics g) {  //http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Paint.html
            g.drawImage(img, 10, 10, null);//http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Graphics.html
        public static void main(String[] args) throws IOException {
           JFrame f = new JFrame(" Image without processing!!");
           f.addWindowListener(new WindowAdapter(){//http://java.sun.com/j2se/1.4.2/docs/api/java/awt/event/WindowListener.html
                @Override
                    public void windowClosing(WindowEvent e) {
                        System.exit(0);
        int i=0;
        for( ; ; ){
            i++;
            getPic pi = new getPic();
            pi.savePic();
            f.add(pi);
            f.pack();  //Causes this Window to be sized to fit the preferred size and layouts of its subcomponents.
            f.setVisible(true);
         try
            Thread.sleep(1000);
            }catch (InterruptedException ie)
            System.out.println(ie.getMessage());
    }Thank you in advance for your answers
    Joan

    Finally I solved my problem(getting as many images as possible from a url infinitely) using the above code:
    import java.net.*;
    import java.io.*;
    public class UserApplication {
        private static int n=0;
        String url;
      public void UserApplication(){
        public static void main(String[] args) throws Exception {
            UserApplication app= new UserApplication();
            for(;;){
            app.urlStr();
        private void urlStr(){
            try{
                url= "http://mplamplampla/frame.php/";
                HttpURLConnection con=(HttpURLConnection) ((new URL(url).openConnection()));
                BufferedOutputStream out = new BufferedOutputStream( new FileOutputStream("C:\\Users\\mpla\\Desktop\\" + n + ".jpeg"));
                con.setDoInput(true);
                con.setDoOutput(false);
                con.setRequestMethod("GET");
                BufferedInputStream in = new BufferedInputStream(con.getInputStream());
                int bt = 0;
                byte[] buffer = new byte[4096];
                while ((bt = in.read(buffer, 0, 4096)) > -1) {
                  out.write(buffer, 0, bt);
                in.close();
                out.close();
                System.out.println("Image " + n + " saved");
                n++;
                } catch (Exception e) {e.printStackTrace();}
    }

  • How much performance can I get from my macbook?

    It's older then 2,5 years but still quite good for my needs. It has a 2.16 GHz Core 2 Duo and I never use all the CPU, it has 2GB 667MHz DDR2 SDRAM and I use it all. I am not using all the 120 GB of 5400 rpm HDD but I use it often and I feel how much it is slow. Intel GMA950 is slow also, but it seems to be enough for me and is able to manage my external LCD at 1920x1200 resolution.
    So I am thinking about two possible ways to have more performance:
    1. get a new macbook pro of 13" with 4GB RAM, newer disk (may be faster);
    2. upgrade my RAM, my Disk and may be my OS.
    I know that I can use only 3.3 GB of RAM if I place 2 x 2GB 667MHz so-dimms: one more GB free could make difference for me.
    About the disk, I know that my SATA is limited to 1.5 Gigabits but, using AJA System Test, I see that my internal drive is able to read and write about 29 MB/s, that seems to be even slower of my external 7200 drive that is using a Firewire 400 connection (39 MB/s).
    It seems to me that newer HDDs on market, eg. Seagate Momentus.4 5400 rpm, are able to give much better transfer rate. My SATA should be able to manage transfer rates till 180MB/s so SATA II HDD should not suffer of it. Is it right?
    Finally I could upgrade to Snow Leopard that should be a little bit faster then Leopard and with a completely new better finder.
    So my questions are:
    1. current 5400 HDD, like seagate Momentus.4, are really double or triple faster then my 2 years old hitachi? Even on my SATA controller?
    2. 667 MHz RAM compared to the new 1066MHz could be a bottleneck even at 3.3 GB?
    3. if I buy a new macbook pro, 2.53 GHz, 4GB RAM, 250GB HDD, how much performance difference will I notice between this new machine and mine with upgraded RAM, HDD & Os?
    It's a difference of about 1.280$ (1.499$ - 220$), so I would be really pleased to listen what you think and know about this kind of upgrade.
    Thanks a lot in advance.
    Fabio.

    Ok, I'll chime in with an opinion at least.
    Wait on the new book. Do a $90 ram/$29 OS upgrade and give up on spending money on a HDD.
    Ive been looking at upgrades to speed up my laptop till I can afford a new one and have decided to wait 12months till SSD prices drop to $1.75-$2.50/GB. I think I will windup with a faster computer than anything that will come out for another 12 more months. I love getting the latest and greatest, but since I wont be able to afford a whole new computer next year I will be happy with a much faster book.
    I am using 65% of my upgraded ram(4/3.3whatever), never all of my cpu and only 35% of my drive space. Also happy with my external LCD monitor.
    If this http://www.amazon.com/Intel-160GB-Mainstream-Retail-SSDSA2MH160G2R5/dp/B002IJA1E Q/ref=sr12?ie=UTF8&s=electronics&qid=1262409156&sr=8-2 hits $360 it will be a no brainer for me. The 'new computer' option will be right out the window.
    Marco

  • Can I get from iConnect financijal and statistic report for single Newsstand application ?

    I have problem to get full financial and statistic report for one single application?
    Is there a posibilty thay kind of report doesn/t exist?
    I can't belive...!

    Welcome to AppleWorks, a discontinued application. I'll try to get you to the iPad forum.

  • Can't get from time elapsed/time left to volume control

    On my iPod Classic 80 GB, "Now Playing" defaults to the "time elapsed/time left" view. When I try to get to "volume control," I stroke the clickwheel, but it often doesn't respond. I have the iPod in a Belkin rubbery protective skin that covers the clickwheel, but it seems responsive enough when I'm already at the control I want to use.
    Is there a way to explicitly go from "time elapsed/time left" to "volume control" in a way that doesn't require the stroking action on the clickwheel? Alternatively is this a sign that the sensitivity of the clickwheel has somehow deteriorated? I've only had the classic for about 6 months and it shows no other signs of malfunction.
    TIA!

    You shouldn't be deleting old Tima Machine backups. When TM runs out of space it automatically deletes the oldest backups to make rioom for the new
    http://pondini.org/TM/12.html

  • QUICKTIME [7.4.1] Why can't get from auto-update?

    I'm trying to get the new quicktime from the auto/update, but it says my software is upto date / but when i checked online the new version was available only from its website,,, so whys it not there in autoupdate, is there a problem in the new version / which is why apple is not it putting on,,, help plz?

    Lawrence,
    Thanks for your reply. 
    So to affirm your point, I agree there are certain users who (for whatever reasons) prefer to evaluate and research the available consensus on every single update published for every single of their apps.  So yes, my want to have apps on the iPhone auto-update (vs being required to manually click to update them) might  frustrate some. To that end, I'd imagine there are very few features (like an auto update) a company could add to a heavily used system (like Apple's iOS) without generating some controversy; the auto-update I want is no exception. 
    That said, the argument that the majority (or even a significant minority) of users wouldn't want to receive the most updated versions of the apps they have on their phones seems a bit thin.  Updates are just that: "up to date" versions of their software.  The onus is on the developers to release functioning and improved updates; that's an obligation Apple should reinforce if they desire a robust and diverse ecology of apps to augment the utility and value of their phones. 
    The present dynamic assumes iPhone users want to invest their time evaluating and collecting research on the viability of each new update to their apps.  That's ridiculous and implies a mistrust of both their app publishers, as well as the effectiveness of a democratic marketplace:
    App publishers want to do right by their users, thus they want to release good updates, and
    A marketplace of user ratings and reviews influence other user behavior, so an irresponsible developer wouldn't get very far releasing crap updates.
    Christian Hunter
    Austin, TX

  • How much improvement can I get from this upgrade?

    I'm planning to upgrade my system and I'm looking for suggestions on my plan. My current system is:
    Intel Core i7 3770
    Radeon HD 7570
    500Gb SSD for everything
    1tb HDD of extra storage
    10Gb of RAM
    Rendering is slow and a lot of dropped frames occurs when editing 4k in Premiere Pro CC. And my graphics drivers crashes when push the system too hard
    This is my parts list for my future build:
    Intel Core i7 5820k(will be overclocked)
    Asus x99 deluxe motherboard
    16Gb ddr4 RAM
    Asus STRIX GTX 970
    240Gb SSD
    the 500Gb SSD and 1tb hard drive will be put I this build.
    I have a few questions. How much of a performance improvement(faster renders, lower dropped frames etc.)would I see with this build? If I just upgrade the GPU, an SSD and increase the RAM size to 16Gb to my original system, how much performance improvement would I see? The upgrade to the 5820k will cost $1000 and I'm wondering if I can upgrade everything else except for the CPU, motherboard and ddr4 RAM?
    Thanks in advance!

    Ok, I'll chime in with an opinion at least.
    Wait on the new book. Do a $90 ram/$29 OS upgrade and give up on spending money on a HDD.
    Ive been looking at upgrades to speed up my laptop till I can afford a new one and have decided to wait 12months till SSD prices drop to $1.75-$2.50/GB. I think I will windup with a faster computer than anything that will come out for another 12 more months. I love getting the latest and greatest, but since I wont be able to afford a whole new computer next year I will be happy with a much faster book.
    I am using 65% of my upgraded ram(4/3.3whatever), never all of my cpu and only 35% of my drive space. Also happy with my external LCD monitor.
    If this http://www.amazon.com/Intel-160GB-Mainstream-Retail-SSDSA2MH160G2R5/dp/B002IJA1E Q/ref=sr12?ie=UTF8&s=electronics&qid=1262409156&sr=8-2 hits $360 it will be a no brainer for me. The 'new computer' option will be right out the window.
    Marco

  • HT5557 Can't get from USA to UK books and tunes!

    Hi Folks -
    for some reason my I pad has started putting me into the USA i-bookstore. Previously I was put into the UK bookstore when i clicked'store' in my library - Similarly - when i go to i-tunes store for music i'm in the USA store. Help! How do i get back into UK books and tunes?
    Thanks
    Bll D

    Change iTunes Store Country on an iDevice
    1. Tap Settings;
    2. Tap iTunes & App Stores;
    3. Tap View Apple ID;
    4. Enter your user name and password;
    5. Tap Country/Region;
    6. Tap Change Country/Region;
    7. Select the region where you will be located;
    8. Tap Done.
    Also, see How to Change Your iTunes Store Account Location | eHow.com.

  • How can I get from the trial ape 8 version to the full version ?

    I have the trial version ape 8  & I really would like to buy the full version as quick as possible, because I edited some stuff... Anyway, when I am clicking at the beginning - that I want to buy a serial nr - I end at the adobe homepage, where they tell me, that I just have to click buy in the trial version... I really just would like to keep my installed version!
    thanks! julia

    Now, there is no real concern about loosing your edited Projects. Uninstalling the program, and then reinstalling the full-paid version should not affect your .PREL files (your Project files). Personally, I am a cautious individual, so I always will make a backup of any Projects (just to be safe). I also do a manual System Restore Point, though many uninstall/reinstall schemes make them too. I told you that I was safety conscious.
    Your media Assets will definitely NOT be touched, so they will still be available, when you Open one of those earlier Project files. Just do not Move, Rename, or Delete your Assets.
    Good luck,
    Hunt
    PS - your English was fine with me. Now, I am from Mississippi, so English is a "second language" to me...

  • How can i get past date if i give no.

    Hi Experts,
      I have a urgent issue. I have to fetch data from a table in between a date range. That sould be current date to before 7 days. how can i get from exact date from the past 7 days of current date.
    Is there any FM to get past date...if we give no.
    Thanks in advance.
    Ramesh.

    Hi,
    Either you can use a function module J_1H_CAL_DATE_IN_INTERVAL or do it by coding.
    data: p_date type sy-datum.
    CALL FUNCTION 'J_1H_CAL_DATE_IN_INTERVAL'
             EXPORTING
                 date          = p_date
                  days        = '07'
                  months     = '00'
                  signum      = '-'
                   years        = '00'
             IMPORTING
                  calc_date    = d_calc_date
             EXCEPTIONS
                  OTHERS    = 1.
    d_calc_date this will have the date which was 7 days ago.
    Or we can even achieve it by coding
    d_date =  p_date - 7.
    This will surely help you.
    Plz reward if useful.
    Thanks,
    Dhanashri.

Maybe you are looking for