How can i by pass the IE SP2 information popup while downloading the pdf
Hello Guys,
I am downloading pdf from my web application (Weblogic 8.2). it work perfectly fine on my local box which uses http protocol. But when we are deploying the application on UAT environment which have other component integrated to it it pop up a annoying information pop up. As a result of which user needs to perform a one more extra step to download the pdf.
I looked at many solution given on the MS site to change the setting of the IE but we want to do something from the server side so that we dont have to change the user setting manually which will require the support from our side.
Please help !!!!!
Code for download
try{
outputStream = res.getOutputStream();
// byte[]bytes = toByteArray(tempFile);
byte[]bytes = getDocServer().convert(files);
res.reset();
res.setContentLength(bytes.length);
res.setHeader("Content-disposition", "attachment;filename=\"" + "please_name_your_file.pdf\"");
res.setContentType("application/pdf");
res.setHeader("pragma", "public");
res.setHeader("Cache-Control", "public");
res.getOutputStream().write(bytes);
res.getOutputStream().flush();
/* res.setContentType(SaveToFileConstant.SAVE_TO_FILE_PDF_CONTENT_TYPE);
res.setContentLength(bytes.length);
res.setHeader("Content-Disposition", "attachment;filename=\"" + "please_name_your_file.pdf\"");
outputStream.write(bytes);
outputStream.flush();
*/ }catch(Exception e){
throw new RuntimeException(e);
}finally{
if(outputStream !=null) outputStream.close();
List tempList = new ArrayList();
// System.out.println("Inside Finally ******* StreamToPDFFile : File Name ******"+tempFileName);
tempList.add(tempFileName);
deleteAllTempFiles(tempList);
~Manoj
mkumar1980 wrote:
Hi,
Thanks for the quick response. I will see how can i use the InputStream as we have utility which create the pdf doc on the fly and returns the byte stream.
But you are write if the size is large then i will eat up the memory.Huh, write? What are you saying?
Anyway, each byte in Java costs at least one byte of memory. So if the PDF file is for instance 100MB, then 100MB of memory will be eaten. Imagine what happens if only 10 users downloads it concurrently while your server has only 1GB assigned to JVM.
I am getting information bar (not pop up) just below the address bar. It says following
*" To help protect your security, Internet Explorer blocked this site from downloading files to your computer. Click here to see more options...."*Oh, that thing. Are you sending the file to the client unexpectedly? Are you doing this stuff in a JSP file instead of a Servlet?
Similar Messages
-
have a used nano Gen. 3 ,and the lock is on after i charge it how do i pass the lock or is it possible. how do i get it out of lock
Yes. Reset network settings. Head to Settings -> General -> Reset and tap Reset Network Settings.
B-rock -
In Outlook my PDF attachments appear as whole documents and not just the PDF icon. How can I have attachments included as PDF icons and not the documents?
For your own viewing, you can of course control-click on the attachment and select "View as Icon".
For others' viewing, it depends upon their email reader. To ensure that attachments are not displayed expicitly you can put them all in a zip file (via control click and "Compress") then attaching them, or you can use third party stuff like Attachment Tamer.
charlie -
How can I get passed the set up page?
I used Time machine from my old computer and used the external hard drive to plug in my new pro. I'm not sure if I just had a lot to put on the pro that it is taking so long, but it's been sitting on the "Thank You. Your Mac is set up and ready to use." page all night with the rainbow ball of death to accompany. Is there anything I need to do or just wait it out?
ThanksHold the Power button until your MacBook Pro turns off, and turn it on. It should start up on Desktop, because the setup was finished correctly.
Setup Assistant got stuck at the moment of getting into Desktop. There's nothing to worry about, if you can use Mac OS X correctly -
Have new mini. When starting 1st time, it stop and displays a picture to push start button on WiFi keyboard. I have USB Apple Kekboard. How can I get pass the display to Startup Assist?
Have new mini. When starting 1st time, it stop and displays a picture to push start button on WiFi keyboard. I have USB Apple Kekboard. How can I get pass the display to Startup Assist?
-
I just purchased the Iphone 5 and i want to give my iphone 4 to a family member but there's a passcode set on my restrictions that i don't remember. How can I by pass this?
Restore the iphone as new
-
How do I find out who my iPhone 4S is locked to? I can't get passed the activation screen.
How can you not know this? Where did you get the phone?
Ask whoever you bought it from or call AppleCare and give them the serial number. -
everytime i link my iphone up to my laptop the message 'welcome to your new iphone' with the option restore from back up or new iphone. i once did restore from back up and it deleted all my recent pictures, music etc. how can i get pass this stage?
Hi Khuram1981 - thank you thank you thank you! All sorted! dont suppose you know how to fix another problem I have??? for weeks now, since updating to ios5 I think, for some reason every time I have tried to log onto app store it says CANNOT CONNECT TO ITUNES STORE. It's nothing to do with my computer, and I've been to the Geniius bar but they couldnt help and nothing I seem to do lets me update my Apps and even worse, I cant even buy any more. Any suggestions?
Again thank you SO much for helping with other problem = a real relief.
Chatterwind xx -
After restoring my iphone 4 to factory settings, then restoring from a recent backup, my phone will reboot but keeps coming back to the "new setup or restore from backup screen". How can I by-pass this screen to go directly to the sync apps/music screen?
Well, it's certainly behaving as though the phone that was backed up was synced to a different iTunes library.
I'm going to throw one more thing out there... Yes, you backed it up to this computer... Was the phone previously set up to sync with this computer? Or was it syncing with a different computer and you just backed it up to this one?
You may have to end up setting it up as a new device and rebuilding the phone by manually re-syncing your data, apps, music, etc. to the phone.
Trying to keep your library on a different drive can be tricky. If iTunes starts up and the library isn't available, it may end up generating a new library ID, meaning that you could easily find yourself in exactly the position you're in now...
I'm curious why there was a need to restore your phone to begin with... It may not have any bearing on this at all, but it could. -
forgot my passcode on my iphone. how can i get passed it so i can reset my password?
You can try and restore it from the computer to which you've previously synched. If this does not work, you'll have to force your phone into recovery mode and restore as a new device. All your data will be wiped.
-
Im having problem purchasing additioal storage the 20GB for $40.00 it keep showing me an error message, how can i get pass it.
Is this for iCloud?
-
How can I get back the other version of itunes?
It was much easier to use and way more confortable, How can I get back the other version of itunes? It was much easier to use and way more confortable
I can't pass playlists from itunes to my i-pod, and the sthetic of the new itunes is not a good one.
Could I get back an older version? those were easier to use, more simplierApple wisely leaves a copy of iMovie version 9 installed in the Application folder when you download version 10.
-
How can I find out the first intial row in VA02-output transaction??
How can I find out the first intial row in the screen which appears during sales order change (VA02) >>enter the sales order number >>after the first screen appears >>in the menu bar go to EXTRAS>>OUTPUT>>HEADER>>EDIT??
I have to find out the first row in the OUTPUT column which is empty,then populate it with some data using BDC.
usefull answers will be rewarded.
regards,
Shashank .Pass the sale order number in the object key of NAST table,
if u get 3 entires, then u need to place ur entry in the fourth row in that table control thru BDC.
I think u got the logic.
Regards,
Sujatha. -
How can I get extract the data between two cursors on an XY graph
How can I get extract the data between two cursors on an XY graph
Well, you say xy graph, so this might be a more complicated problem.
For a waveform graph it's trivial. Simply get the two cursor indices (property: cursor index) and apply them to array subset of the data. Is that all you need?
Here's how the above code would look like. using cursor.index instead of cursor.x elimnates the need to include scaling information.
For an xy graph, there could be multiple segments (e.g. imagine a spiral that passes the desired x range multiple times from both sides). This would neeed significantly more code for a general solution.
Message Edited by altenbach on 11-24-2009 07:53 AM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
cursorsubset.png 17 KB -
airport extreme software will not install on vista, how can i still configure the router? Trying to help someone with vista get an airpot extreme configured. 10.0.1.1 does not work, the software will not install correctly on their vista machine. How can I get into the base tation and lock it down?
Hi - Vista can be tricky - I need more info to see if I can be of some help - first, is the Vista machine a desktop or a laptop and is it fully up to date with Windows Update (sp2 or higher)? - next, are you trying to install Airport Utility version 5.5.3 which is the correct one for Vista? - and finally, what do you mean "it will not install" - what kind of error messages or evidence are you getting?
Maybe you are looking for
-
I have a MacBook Pro Keeps completely shutting down all the time when its fully charged and at random times when it is at 65% for example Do I need to get a battery replacement? Or do I have a virus? PLEASE HELP
-
Officejet 7000 Wide Format 809a
How do I get a replacement external power supply for the HP Officejet 7000 Wide Format 809a printer. I have followed the HP on line video to do a reset and check on the power supply and believe that the ext'l power supply is dead. Printer was last se
-
My battery was not working properly (kept running out over a few hours.) I was advised at the apple store to restore my iphone which i did. When i try to restore it to my back up it keeps asking for a password but i have no idea what this password i
-
Having trouble with my desktop recovery. I have a HP Pavilion a1310n. I run the XP recovery and just when I think I'm getting close I get the following error message: "Cannot create file c:\hp\bin\setRes.log.". I acknowledge the error and the sy
-
How to install previous safari from 6.01 ?
englishnis not my first lenguage , so please do not warry for mistakes. i am not happy for that safari 6.01 it has not history like before and actually i dont like all of things in it .please help.