Zip download not working for IE, but works with mozila and crome browsers

The requirement is: we need to download a zip file, and the zip file may contain more than one csv file.
The application is deployed in Linux server and WebLogic 10.3.2. In internet explorer the zip files downloads as a corrupt file which cannot be unzipped. Although in mozilla firefox or chrome I can download the zip file, can unzip and can see the contained csv file as well. Could you please let me know what is wrong in the above code or what modification is needed to make this code workable in Internet Explorer as well?
I have created a fileDownloadActionListener as below:
<af:commandButton text="Ok" id="commandButton1">
<af:fileDownloadActionListener contentType="application/zip"
filename="ExportBid.zip"
method="#{BasePricingBean.exportBid}"/>
</af:commandButton>
In backing bean, I have created a DownloadActionListener method as below:
public void exportBid(javax.faces.context.FacesContext facesContext,
OutputStream outputStream)
BindingContainer bindings = getBindings();
OperationBinding operationBinding =
bindings.getOperationBinding("getType");
Object result = operationBinding.execute();
List selectedType = (List) result;
BufferedInputStream bis = null;
ZipOutputStream zipOut = null;
FileInputStream fis = null;
if (selectedType != null)
try
zipOut = new ZipOutputStream(outputStream);
int BUFFER = 2048;
DCIteratorBinding bindingIterator =
ADFBindingUtils.findIterator("TestROVOIterator");
TestROVOImpl vo =
(TestROVOImpl) bindingIterator.getViewObject();
RowSetIterator iter = vo.createRowSetIterator(null);
int index = 0;
while(index<selectedType.size()){
while (iter.hasNext())
TestROVORowImpl row =
(TestROVORowImpl) iter.next();
String selectedval =
String.valueOf(selectedType.get(index));
String type = row.getCd()+"-"+row.getId();
if (type.equalsIgnoreCase(selectedval))
createCSVFormatFile();
fis = new FileInputStream("tempcsvstorage.csv");
bis = new BufferedInputStream(fis, BUFFER);
zipOut =
(ZipOutputStream) createZip(bis, zipOut, type+".csv",
BUFFER);
iter.reset();
index++;
iter.closeRowSetIterator();
new File("tempcsvstorage.csv").delete();
catch(Exception e){
e.printStackTrace();
finally
try
if (zipOut != null)
zipOut.flush();
bis.close();
fis.close();
zipOut.close();
facesContext.responseComplete();
catch (Exception e)
e.printStackTrace();
else
return;
public void createCSVFormatFile()
FileOutputStream fos = null;
BufferedWriter bw =null;
try
fos = new FileOutputStream("tempcsvstorage.csv");
bw =
new BufferedWriter(new OutputStreamWriter(fos, "UTF-8"));
BindingContainer bindings = getBindings();
OperationBinding operationBinding =
bindings.getOperationBinding("getValueInCSVFormat");
Object result = operationBinding.execute();
StringBuffer[] resultSet = (StringBuffer[]) result;
List error = operationBinding.getErrors();
for (int index = 0; index < resultSet.length; index++)
bw.write(resultSet[index].toString());
bw.newLine();
bw.flush();
bw.close();
fos.close();
catch (UnsupportedEncodingException e)
catch (FileNotFoundException e)
catch (IOException e)
public OutputStream createZip(BufferedInputStream pBis,
ZipOutputStream pZipOut, String fileName,
int pBUFFER)
int BUFFER = pBUFFER;
byte[] buffer = new byte[BUFFER];
try
try
pZipOut.putNextEntry(new ZipEntry(fileName));
int count;
while ((count = pBis.read(buffer, 0, BUFFER)) != -1)
pZipOut.write(buffer, 0, count);
pZipOut.closeEntry();
catch (IOException ioe)
ioe.printStackTrace();
catch (Exception e)
e.printStackTrace();
finally
return pZipOut;
finally
}

Well if it works from one browser it would seem likely that the code you are using to create the file is OK. So I would concentrate on what is different between the browsers, so that will be Mime type management and security.
Your mime type def seems to be OK but it may be the mapping that IE is using that is broken
IE will take the mime type mapping from the registry so it may be worth trying IE from another machine just in case there is something screwy there. Also if you're on Windows 7 make sure that the Zip has not been "blocked" - save it to disk on the client, select the file and choose properties from the context menu - see if it says blocked in the Attributes section.

Similar Messages

  • Motion tracking is not working for videos but works for images?

    Motion tracking is not working for videos but works for images. When the videos is drop onto the tracking object the videos corner don't appear highlighted. I am working on windows 7 with version 13.1.

    ivanhoeeurope
    Are you within 30 days of purchase for the Premiere Elements 13? And, did you purchase as a download from Adobe? If so, you can
    apply for a return/refund for 13. If you purchased elsewhere, then you would be governed by the return/refund policy of the seller.
    Adobe no longer sells version 12, so you would have to find a vendor who still has it in stock and purchase it. There is no way to "downgrade"
    13 to 12.
    What you may want to do is to download and install the Premiere Elements 12 tryout from the following web site to verify that 12 Motion
    Tracking works for you; whereas 13 cannot with regard to use of video for the Motion Tracking source media.
    Adobe Photoshop Elements 12 Direct Download Adobe Photoshop Elements 12 Direct Download Links, Premiere too | ProDesignTools
    Apparently this web site does not sell the tryout. It just makes it available for use.
    Before I posted my reply to you I looked at Motion Tracking with video source media on both Premiere Elements 12/12.1 and 13/13.1 on the same Windows 7 64 bit computer.
    If any questions or need clarification, please do not hesitate to ask.
    Thank you.
    ATR

  • People picker is not working for ie11 but working fine for other lower version

    i am using sharepoint 2010 and windows authentication
    recently i have updated my ie to ie11 and problem goes here.
    when i try to select from people picker, there are an unexpected error happened 
    however when i use other ie version, people picker work fine, what goes wrong?
    i have already added my system as trusted site
    if there any others thing i miss out?

    Hi,
    According to your post, my understanding is that People picker is not working for ie11 but working fine for other lower version.
    IE 11 is known to have compatibility issues on SharePoint 2010, please make sure to:
    first of all, try installing latest update for IE 11 (several compatibility issues were fixed since the first release)
    add the site to compatibility view (in IE> Tools> Compatibility view settings> type site name> add)
    add the site to trusted sites and set the zone security level to low (in IE> Internet Options> Security> trusted sites> sites>add your site there> ok> custom level> select low> reset> ok)
    You can use developer tools (f12) and set browser mode to the version that is most compatible with your environment.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Print Screen not working for user but working for Administrator

    Satellite A100 Laptop Print Screen Not working for USER but is working for Administrator[ New ]
    09-14-2009 11:25 AM
    Hi I am new to this forum and am asking for your  help.  We are sharing a computer, the PrtSc key is working for the Administrator but not when we switch users.  We have tried everything that we can think of: From opening a the page(S) we want to paste to not opening the pages. My most common usage is to PrtSc and paste it into an email , but barring that we have tried opening a page in notes, documents, word etc . Nothing seems to work.  I do not get an error message , it just won't paste. Since we are not computer literate we are hoping you can help us with a solution .  Thanks in Advance .

    Jerry, that post you just answered was from nearly 4 1/2 years ago!  And that's the last time the OP was here.
    C.B.
    Toshiba Sat. C75D-B7260 Win 8.1 64 Bit--Toshiba Sat. L775D-S7132 Win 7 HP SP1 64 Bit and Win 10 PRO Technical Preview--Toshiba Sat. L305-S5921 Win Vista SP2 32 Bit

  • HELP - Website isn't working for me but working for everybody else

    Hey I'm new to this site so I'm sorry if this is in the wrong section!
    So I've been getting annoyed lately because my website (www.curtiskeay.com) isn't working for me and just redirecting me back to my hosting website saying that the website is 'coming soon' but it works for everyone else that has tried loading it, so it just seems to be me that it's not loading for.
    It works every now and then but very rarely for me, so it makes me feel that the site is down but really and truly it's just not loading for ME. It works perfectly fine at home on my wifi on my phone which is android and I use google chrome. I know this isn't probably a Apple related problem but I was unsure where else to post this.
    If anyone can give me any kind of help it would be greatly appreciated!
    Thanks,
    Curtis

    It's working here.
    Try this..   from your Safari menu bar click Safari > Preferences then select the Privacy tab.
    Click:  Remove All Website Data
    Now empty the Safari cache.
    Back to Safari > Preferences. This time select the Advanced tab.
    Click: Show develop menu in menu bar
    Now go to the menu bar, click Develop > Empty Caches
    Quit and relaunch Safari then try your site.

  • Airplay not working for audio but works for video and win7?

    Right now I can't seem to get airplay to function correctly on my new macbook air (os x 10.7.1).
    My current hardware:
    Intel Core i5 Macbook Air 1.7Ghz 13"
    Airport Extreme (current generation - 5th)
    Apple TV 2
    Airport Express
    All updated to latest version (OS X 10.7.1, iTunes 10.5, updated airport express & extreme and apple tv 2 - don't remember version #s - sorry)
    Symptoms:
    In iTunes, I can select either the Apple TV 2 or Airport Express.
    When I do, a window pops up with a loading bar, "Connecting to Apple TV" (or Airport Express).  This never goes away/connects.
    If instead of audio, I try and stream a video to the ATV2, it connects and works instantly.
    I can switch quickly from video to audio and it will transmit fine for the duration of that song.
    The ATV2 can see and connect to my itunes library and stream music through homesharing (i.e. selecting the music through the ATV2 as opposed to sending it through airplay from itunes)
    Itunes running on my fiance's laptop (HP Win7, itunes 10.5) can airplay to each of these devices flawlessly.
    Any ideas?  I've confirmed that home sharing is turned on.  Airplay is turned on. (this is true for the macbook air, apple tv, and airport express).  Firewall on or off on the macbook air doesn't have an effect on this issue. I've also reset and reconfigured the Airport Extreme, Apple TV 2, and Airport express.  I don't want to yet on the macbook - this problem existed from day 1 and I'd rather not do a full reset/restore on the laptop if I don't need to.
    Thanks for your help.
    Tim

    Well if it works from one browser it would seem likely that the code you are using to create the file is OK. So I would concentrate on what is different between the browsers, so that will be Mime type management and security.
    Your mime type def seems to be OK but it may be the mapping that IE is using that is broken
    IE will take the mime type mapping from the registry so it may be worth trying IE from another machine just in case there is something screwy there. Also if you're on Windows 7 make sure that the Zip has not been "blocked" - save it to disk on the client, select the file and choose properties from the context menu - see if it says blocked in the Attributes section.

  • Workflow process does not complete for 3500 but works for about 10 records

    Hi Gurus,
    I am a novice in workflow. Pls bear if the questions are very basic.
    We have a old custom workflow process which is inistaed by a PL/SQL procedure
    WF_ENGINE.CreateProcess ---
    WF_ENGINE.StartProcess ---
    COMMIT; ---
    Now this process has run for over 6-7 years but has always processed max upto 8 or 10 records at a time. Now we had about 4000 records in a table and the process was running for more than 4 days now and it has been termiinated.
    I could not see any new item_keys. Is it because we have a commit only at the end.
    This process has 3 sub processes. they are connected by 'AND' and then we have an 'End' node.
    The first sub-process is simple and we can see a record in wf_items .
    Howver no records are there in wf_items for the 2nd and 3rd sub processes.
    How can we check the point where it has hanged. Querying Status monitor just gives the first sub-process that has completed. How to debug for these cases.
    This has always worked for small volumes. Now we have about 4000 records and we face this problem
    The process actually checks data from the table and based on some conditions , it send 5 different notifications to 5 different mail groups. So we expect about 4000*5 mails to be sent.
    Any help is welcome.
    Thanks,
    L
    Edited by: 901929 on 20-Jul-2012 01:38
    Edited by: 901929 on 20-Jul-2012 01:39

    L,
    Please check the following:
    1. Since this is pure PLSQL you can have a SQL script where you enable a database event to get a trace and then run tkprof on the output to spot any performance problem. You can use something like:
    alter session set tracefile_identifier='Background' max_dump_file_size='unlimited' events '10046 trace name context forever, level 12';
    begin
    wf_engine.CreateProcess(...);
    wf_engine.StartProcess(...);
    end;
    commit;
    alter session set events '10046 trace name context off';
    select fnd_debug_util.get_trace_file_name() tracefile from dual;
    2. Do you happen to know if WF runtime tables are being purged regularly? If this is not done you can expect serious performance problems. If this is WF Apps embedded you need to clean data using the concurrent request Purge Obsolete Workflow runtime data, if not then you can use the APIs in package WF_PURGE.
    3. You will only find one record in WF_ITEMS for this process if those sub-processes belong to the same item type
    4. About the notifications, make sure you are not running into this design problem: https://blogs.oracle.com/oracleworkflow/entry/looping_within_a_workflow_process
    Regards,
    Alejandro

  • Firewire 800 port doesn't work for cameras but works for Ext drives

    I have a Power PC G5 1.8 running 10.5.8
    I have a 9 pin FW 800 port on the back that does not work for cameras, trying to capture video into Final Cut Pro. But works fine when I hook up an external hard drive to it.
    Does anyone know why that is? It used to work, now it doesn't. Any suggestions?

    Does System Profiler>Hardware>Forewire tell us anything when the Cameras are plugged in FW/800 port?
    Do the Drives have an extra FW/800 port to plug the Camera in?

  • Im having problems with Photobucket..sending my customized photos to friends on myspace. They claim it works for them But the albums freeze and i cannot send HELP...

    problem with photobucket..When i get ready to send out comments to myspace from my customized albums..it freezes and im not able to send. They say it works for them and gave me a long line of things to do..I have attempted that..it still doesnt work..Im aggravaded beyond belief..

    THANK YOU SO MUCH stussaar!
    My Mother did what you said for the Spam and my number was in there about 100 times. She deleted all them. Deleted me as a contact and then rebooted, then she text me and I text her back and I went right into the Spam again. I told her to tell TMobile this so then can maybe help and remove my number from Spam on their end.\
    Thanks you so much! you got us 99.999 % the way there!!
    I appreciate your help!!!!  I hope this worked also for your problem!!
    Thanks again!!!
    Mike

  • My phone went to update to the newest system and it went to restoring itself. It no longer works for anything but "backing itself up", and keeps sending me in circles with restoring it over and over. I have restored it 7 times and I'm tired of doing it.

    I went to update my iphone 4s to the new system, and it just went to restore itself? It was just in the process of restoring itself so I had no option of leaving the page or anything. I was forced to restore it. Thats fine, but then it went back to the same restore page that i had no option but to do. ok..I restored it again. and again and 3 more times. It is just going in a circle of restoring for no reason or going anywhere. So now I dont have a phone because it went crazy? hmm Samsung?

    Hey Sound!
    Have you tried Repairing Permissions? If not, go to your applications folder, then to utilities and the disk utility. Then select "Repair Permissions." After it's done restart and try connecting again.
    Hope this helps!
    Sharon

  • Flash player works for youtube, but flickers on facebook and other sites, what is the issue?

    I am running windows 7 32 bit, and have flash player 11. Anyone know what is going on here? I have disabled hardware acceleration and changed storage to 10MB>

    To assist us in quickly understanding your problem, please follow these guidelines when posting:
    Specify your web browser and version (including 32bit or 64bit edition)
    Specify your Flash Player version
    Give us a brief explanation of the problem, please include any information you feel is important

  • HT1476 My iPhone 4S will charge on a laptop but not from a wall plug. I have tried different boxes and different USB cords from the wall but none work. These boxes and USB cords work for other family members with iPhones. I'm stumped :/

    My iPhone 4S will charge on a laptop but not from a wall plug. I have tried different boxes and different USB cords from the wall but none work. These boxes and USB cords work for other family members with iPhones and a USB cord that works from the laptop won't work from 3 or 4 different wall boxes that work for others. I'm stumped :/

    Update: It seems as though the phone will charge if I plug it in and then turn it off.  It will not charge while the phone is on.  Also iTunes will not recognize it, so I can't sync or anything.  I read somewhere that it could be a fuse somewhere?? Or maybe the dock connector. Where is the best place to get this repaired?

  • Since downloading Yosemite Flash Player not working. Have downloaded Flash Player for Mac, but still not working. Is there a fix for this? Thanks.

    Since downloading Yosemite Flash Player not working. Have downloaded Flash Player for Mac, but still not working. Is there a fix for this? Thanks.

    1. System Preferences >  Flash Player > Advanced >  Delete  All
         Press the "Delete All" button.
         Install Adobe Flash Player.
        http://get.adobe.com/flashplayer/
       Download it first.
       The next step is important.
       Click Safari in the menubar and select “Quit Safari”.
       If it doesn’t quit, Force Quit it.
       Press command + option + esc keys together at the same time. Wait.
       When Force Quit window appears, select the application if not already.
       Press Force Quit button at the bottom of the window. Wait.
       Application will quit.
        Follow the prompts and install it.
        Restart computer. Relaunch Safari.
    2.  Allow  Plug-ins
        Safari > Preferences > Security
        Internet Plug-ins >  "Allow  plug-ins"
        Enable it.

  • Password works for login but not for the Adobe CC Desktop application

    Password works for login but not for the Adobe CC Desktop application

    Please refer to http://helpx.adobe.com/creative-cloud/kb/troubleshoot-cc-installation-download.html
    ou can try deleting OPM.DB from steps below and try again.
    Mac OS: You can locate the OPM.db file in the \User\\Library\Application Support\Adobe\OOBE folder. To access the hidden user Library folder, see Access hidden user library files | Mac OS 10.7 Lion. - http://helpx.adobe.com/x-productkb/global/access-hidden-user-library-f iles.html
    Windows: You can locate the OPM.db file in the :\Users\\AppData\Local\Adobe\OOBE folder.  To view the hidden AppData folder, see Show hidden files, folders, filename extensions | Windows XP, Vista, Windows 7. -http://helpx.adobe.com/x-productkb/global/show-hidden-files-folders-ex tensions.html
    3) update to the latest version of the Creative Cloud app.
    Also we would like few more details:
    When has this issue started occurring, was this after installation of any specific adobe product.
    On which platform are you seeing this.
    Also we would like to know if after above steps this issue occurs ever again in future.
    You can refer to http://forums.adobe.com/thread/1239510
    Regards,
    Rajshree

  • Flash shockwave 11.5 works for youtube but not amazon instant video

    Shockwave 11.5 r502 works for Youtube but not for Amazon Instant Video.

    Hi,
    It asked me if I wanted to install something to make the videos load faster -
    Check Safari / Preferences - Extensions. Might be lurking there. If so, select the plugin then click Uninstall.
    Check:
    ~/Library/Internet Plug-Ins (~) Tilde character represents your Home folder
    Check:
    /Library/Internet Plug-Ins
    /Library/Application Support
    /Library/Input Managers
    And check your Safari downloads folder. If the file is still there, double click to open. Might be an uninstaller you can use.
    Help here for troubleshooting Flash
    Carolyn
    Message was edited by: Carolyn

Maybe you are looking for

  • Question about multiple ipods on one computer

    I set up my own ipod nano on my computer and I have been using it without problems for some time. Now someone else in my family got the same ipod nano. I do not know how to set up this new ipod. Do i use the same software already on my computer? Do i

  • Firefox always opens all tabs that were opened when last closed

    Firefox, out of the blue, started to always show my tabs from the last session when it is started. I checked that Firefox not listed in the task manager list after closing. So I tried the following: - changing the option "when Firefox starts" to all

  • Disappearing DRM TV

    Hey I love Apple TV but it really has problems. When internet goes out it just dumps gigabytes of TV shows and moves that are iTunes (DRM) purchased. This means that I paid for the larger hard disk but it is only useful for non-iTunes video content.

  • Sort one field base on another field

    Hi: I think this maybe a simple question but I can't find the way to do that. For example in a bar chart, measure vs. month_name, where month_name is Jan., Feb., Mar., etc. By default, the bars are sort in alphabet order, but actually we usually want

  • How do you delete an upgrade on the upgrade page

    There are things on the Mac app store upgrade that I don't want to download. Can I delete those upgrades?