File downlaod -- Problems with netscape

Hi,
I am trying to implement the file download functionality. I am using the following code for that.
response.reset();
response.setContentType("APPLICATION/OCTET-STREAM");
response.setHeader("Content-Disposition","attachment; filename=\""+filename+ "\"");     
response.setContentLength((int)file.length());     
FileInputStream fileInputStream = new FileInputStream(fileName);
int i;
while ( (i=fileInputStream.read()) != -1) {
     output.write(i);
output.flush();
output.close();
fileInputStream.close();
response.flushBuffer();
it works fine with IE. but while trying to download the files with Netscape, download prompt is adding '.do' at the end of the file name before saving it.
If anybody knows the solution, please write back.
Thank you.
Prasad.

Hi,
I am trying to implement the file download functionality. I am using the following code for that.
response.reset();
response.setContentType("APPLICATION/OCTET-STREAM");
response.setHeader("Content-Disposition","attachment; filename=\""+filename+ "\"");     
response.setContentLength((int)file.length());     
FileInputStream fileInputStream = new FileInputStream(fileName);
int i;
while ( (i=fileInputStream.read()) != -1) {
     output.write(i);
output.flush();
output.close();
fileInputStream.close();
response.flushBuffer();
it works fine with IE. but while trying to download the files with Netscape, download prompt is adding '.do' at the end of the file name before saving it.
If anybody knows the solution, please write back.
Thank you.
Prasad.

Similar Messages

  • Help with add file name problem with Photoshop CS4

    Frustrating problem: Help with add file name problem with Photoshop CS4. What happens is this. When I am in PS CS4 or CS3 and run the following script it runs fine. When I am in Bridge and go to tools/photoshop/batch and run the same script it runs until it wants interaction with preference.rulerunits. How do I get it to quit doing this so I can run in batch mode? Any help is appreciated. HLower
    Script follows:
    // this script is another variation of the script addTimeStamp.js that is installed with PS7
    //Check if a document is open
    if ( documents.length > 0 )
    var originalRulerUnits = preferences.rulerUnits;
    preferences.rulerUnits = Units.INCHES;
    try
    var docRef = activeDocument;
    // Create a text layer at the front
    var myLayerRef = docRef.artLayers.add();
    myLayerRef.kind = LayerKind.TEXT;
    myLayerRef.name = "Filename";
    var myTextRef = myLayerRef.textItem;
    //Set your parameters below this line
    //If you wish to show the file extension, change the n to y in the line below, if not use n.
    var ShowExtension = "n";
    // Insert any text to appear before the filename, such as your name and copyright info between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextBefore = "Lower© ";
    // Insert any text to appear after the filename between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextAfter = " ";
    // Set font size in Points
    myTextRef.size = 10;
    //Set font - use GetFontName.jsx to get exact name
    myTextRef.font = "Arial";
    //Set text colour in RGB values
    var newColor = new SolidColor();
    newColor.rgb.red = 0;
    newColor.rgb.green = 0;
    newColor.rgb.blue = 0;
    myTextRef.color = newColor;
    // Set the position of the text - percentages from left first, then from top.
    myTextRef.position = new Array( 10, 99);
    // Set the Blend Mode of the Text Layer. The name must be in CAPITALS - ie change NORMAL to DIFFERENCE.
    myLayerRef.blendMode = BlendMode.NORMAL;
    // select opacity in percentage
    myLayerRef.opacity = 100;
    // The following code strips the extension and writes tha text layer. fname = file name only
    di=(docRef.name).indexOf(".");
    fname = (docRef.name).substr(0, di);
    //use extension if set
    if ( ShowExtension == "y" )
    fname = docRef.name
    myTextRef.contents = TextBefore + " " + fname + " " + TextAfter;
    catch( e )
    // An error occurred. Restore ruler units, then propagate the error back
    // to the user
    preferences.rulerUnits = originalRulerUnits;
    throw e;
    // Everything went Ok. Restore ruler units
    preferences.rulerUnits = originalRulerUnits;
    else
    alert( "You must have a document open to add the filename!" );

    you might want to try the scripting forum howard:
    http://www.adobeforums.com/webx?13@@.ef7f2cb

  • File sharing problems with my Media Player, an A C Ryan

    I have a media player, an A C Ryan, hooked up to my wifi at home and it normally accesses all my hard disks that is plugged and shared on my iMac. I had no problems when the iMac was on Snow Leopard. Under Network/Workgroup in the AC Ryan's menu, I can see and access all the files on the hard disks.
    The moment I upgraded to Lion, all such access was lost. The AC Ryan cannot connect to the hard disks any more via the wifi network. it's as though file sharing has stopped completely. I checked the file sharing settings on the iMac and nothing has changed i.e. the disks were shared as usual. After struggling with many possible solutions and failing (I checked out a lot of forums), I reintalled Snow Leopard and the problems were immediately solved.
    Is there something seriously wrong with Lion's file-sharing? Has this been fixed in 10.7.2? My friend who has a similar setup (his media player is the WD Live) has exactly the same file sharing problem with Lion.
    I would appreciate any feedback. Thanks!

    I believe that NTFS-3G has issues with Lion.
    I use Paragon NTFS and have had no issues at all. I am pretty sure that NTFS-3G will get updated, but you need to check their site to find out when.

  • TOC/Script problem with Netscape

    I am using RoboHelp (webhelp) 5.5.
    I am facing two problem with netscape browser.
    1. loading the page itself take long time and show a message
    that script on this page is causing mozilla to run slowly.
    2. in the TOC when i click the TOC BOOK the content of the
    page inside that book is opened in new tab page in the same browser
    instant

    Hello Robo_Rajesh,
    Welcome to the forum.
    As a start point, I would suggest you check the following on
    Peter Grainge's web site for an explanation.
    Click
    here.
    Hope this helps.
    Brian

  • Funny problem with Netscape

    I am having an applet. When I removed all class files and place JAR file, Netscape started giving problem.
    Please note following
    1)On local intranet both IE / Netscape applet is running properly. (With Jar and with classfiles.)
    For LIVE :
    2)If I try to connect through direct dial-up connection to Live server, again both IE / Netscape are ok (With Jar and with classfiles.)
    3)If I connect through local intranet to LIVE server (my computer is behind the firewall) and put the class files then also for both IE / Netscape it is ok
    4)If I connect through local intranet to LIVE server (my computer is behind the firewall) AND WHEN I REMOVE ALL CLASS FILES AND REPLACE WITH JAR FILE, IE is still ok, Netscape is giving following error :
    java.lang.NullPointerException
    at java.lang.StringBuffer.append(Compiled Code)
    * at netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(Compiled Code)
    at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code)
    at java.awt.EventDispatchThread.run(Compiled Code)
    at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled Code)
    It is very obvious, problem is because of Firewall and Netscape security, but how to get around this problem ?
    manisha

    Hi,
    I don't know whether it is exactly a same problem or not, but, my applet had received the same error message at start time . What I did in previous revision is System.getProperty("user.dir") as applet's instance variable.
    class myApplet extends JApplet {
    private String currDir = System.getProperty("user.dir");
    //Other code goes here......
    Since my applet does some local file access, security code is already there in init(), so I moved getProperty() to the inside of the init(), like:
    class myApplet extends JApplet {
    private String currDir = null;
    public void init() {
    //Security permissions are here
    currDir = System.getProperty("user.dir");
    //Other codes goed here...
    Then problem gone.
    Because Netscape message does not indicate that this is a security related problem nor, problem is related to applet initialization, so I really think finding resolution is very much difficult.
    I believe other people who have this problem may have some security-related code in their applet...
    Worse, this problem does not happen in Internet Explorer (MSVM).
    If getting "user.dir" at initialization of the applet is a security violation, those VMs should report it so, I think...
    Anyway, this is my case. I hope this information will make any sense in your case as well.
    Regards,
    M.H.

  • .MSG files. Problem with getting requested values from crawled properites

    Hi
    I have a lot of msg files on my file server. I use SharePoint Enterprise Serach engine to crawl all these MSGs.
    I would like to get extra managed properties out of these files. I am most interested in getting Mail:5(text) / Mail:12(Date and Time) / Mail:53(Date and Time) from MAIL category in Managed Properties.
    This thread is very similar to one already posted by SpinnerUp:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/82d69df0-5cb2-4e51-a485-34209e111f4b/problem-with-crawling-msg-files-doesnt-seem-to-return-requested-values-from-crawled-property
    Please be aware that I do not use Public Folders. These MSGs are exproted from Outlook and are stored on File Server not Exchange.
    I tried to link Crawled Properties to new property however I cannot get any results back.
    Thank you for you help.
    Regards, Marcin (Please mark as helpful or answered if it helps)

    Thank you for your replay.
    However I am not keen to write custom connector at this stage.
    Is it possible to simply get "Subject", "Sent", "Received" info from msg file and then map it to managed properties.
    Does SharePoint create any crawled properties which contain information about let's say "Subject" which then can be used to create managed properties?
    I tried playing with "MAIL" properties however I cannot get them to work. I guess this is because the file is a msg file rather than mail which is stored in Exchange Public Folder.
    Regards, Marcin (Please mark as helpful or answered if it helps)

  • Sender file Adapter, problem with proxy authentication

    HI all,
    i'm having some problems with the following scenario, i need to configure a sender file adapter which connects to a FTP server. To connect this FTP server i need to set a proxy (and so a username and a password), and i don't know how to do.
    From note 821267 seems that the proxy is not supported for an FTP adapter, but the are some workaround like the ones described in the following link
    Re: Proxy server inFTP adapter
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=57137
    They don't work in my case as i need to se two username (the one for proxy and the one for the ftp server) and i cannot force the proxy use for all XI applications.
    Can anyone help me?
    Thanks a lot
    Aldo

    Proxy is necessary to exit the customer local intranet. It's not possible to go outside network without going through the proxy server.
    I cannot set the proxy server in file adapter as it's not supported like described in SAp note,  a possible workarounf is to force the proxy server in the J2ee stack but in this way all PI calls would use that proxy..

  • File sharing problems with T500 and T410 and a desktop all running XP Pro SP3

    Others have had similar problems with what appears to be an overriding of Windows file sharing by Access Connections.
    My three computers, printers and internet modem are networked and working fine both wired and wirelessly except that while the desktop computer in network places can "see" shared folders on the Thinkpads, access to them is denied. Access to desktop shared folders from the Thinkpads works fine.
    All the usual sharing settings have been checked and verified by Microsoft support; it does not so far have a solution.
    Could this issue please be addressed more thoroughly and/or suitable documentation referenced? I have read the blurb about Access Connections but can't make a lot of sense of it.
    Thanks

    When you use the Desktop top menu bar Go/Connect to Server and enter
    smb://nameofPC
    what happens ?

  • File association problem with excel

    hi everybody,
    i have the following annoying little problem, couldn't find any answers so far in the forum:
    i have some downloaded files (just plain text files) that i call ".in", and finder lists those as "microsoft excel binary document". now i want to associate those files to open with textwrangler as standard app. if i get information for those files and set "open with" to textwrangler, as soon as i click "change all" it reverts the application in the "open with" box to "microsoft excel", meaning i can never change the filetype permanently.
    anybody know what i might be doing wrong, or what i can do to make the change stick?
    thanks

    Hi Gopal,
    There is a a column width optimize function of SLIS ALV layout.
    colwidth_optimize(1) type c
    but, i am not sure if it works.
    Also, when the report is generated, there is an option in the menu.
    Go to "Setting --> Columns --> Optimize Width"
    With this, it optimizes the column width based on data width but when you download, it reverts to the dictionary field length.
    Regards,
    Vivek

  • File association problems with Win2K server

    Hi,
    I have a client - 5 Macs in a Win2K network. They're designers and store/work on all their jobs on a Win2K volume. About 2 months ago, problems started happening - files lost their application association (mostly all were turned into Unix exec files), causing sever problems with the workflow. Quark can't open a placed image in it's native app for instance, because the association has been lost. The user has to visit each file and re-associate. As you can imagine, this is not an ideal situation to say the least.
    Furthermore, when re-associating the files, the option to "Always open with" is greyed out, so a one-time fix isn't possible.
    I suspected that it was something to do with the windoze volume. I more or les proved it by copying one of the files to a local machine and then re-associating: all works as it should when the files are local. Copying the files locally is not an option though.
    This really is at the limit of my windoze knowledge. Their sysadmin is also not sure what's happening, aside from the fact that there's no windoze app that's accessing the files and writing them back to the disk. The only thing that looks at the files is the daily backup and that's a read and not write operation. We're stumped, but it really needs sorting. I've suggested they move some of the files to another server and see if the same occurs, which may or may not prove the issue is with the server they're using now. Any guidance gratefully received.
    All Macs at 10.4.5 and recent updates, all have QXP 6.5, CS2.

    Probably nothing has changed with your server or your network. Typically, folks realize, "Hey! I can connect via SMB and that's my workaround for the 31 character file name limit!" Or possibly, your Mac folks are browsing the network for your server and selecting it through your Windows domain rather than a Mac zone. Tiger changed the appearance of Windows "WORKGROUPS" so that they now appear as upper/lower case instead of all caps. This use to be a good way to distinguish them from zones.
    To guarantee your users are connecting via AFP, which is what I would recommend for a Mac workgroup, have them specifically use "afp://servername" in the "Connect to Servers" dialog. I don't recommend Apple's SMB because Mac OS X splits each file into separate resource and data fork files before placing them on the server. When Windows folks see this, it's a mess. And I don't recommend continuing to use Microsoft's SFM because its version of the AFP protocol hasn't been updated in years. Either way, look to a third party software solution.
    Don't let the 65+ GB scare you. It's really not that bad if you're on a 100MB network but the server should recognize that all traffic is local and actually handle all the file moves itself without shuffling files across the network. A bit of a pain, but shouldn't take too long.
    Good luck! bill
    1 GHz Powerbook G4   Mac OS X (10.4.5)  

  • Raw file rendering problems with Canon EOS 5D in Aperture 3

    Since upgrading to Aperture 3, I have had serious problems with the rendering of Canon EOS 5D (not Mark II/III) RAW files. With Aperture 2, both the preview and full-sized images looked basically the same as the original images as displayed on the camera's display, without any adjustments.
    With Aperture 3, each preview images initially look fine after import, but when Aperture re-renders it from the RAW file (e.g. when displaying the full-size image), the colors are drastically intensified, and the hue is shifted generally towards green/blue. I've checked the RAW Fine Tuning, and it is set to the defaults. If I turn the default RAW Fine Tuning settings all the way down, the image is still not at all like the preview from the camera - it becomes much darker and stays too blue/green, with washed-out colors.
    A friend with a Canon EOS 5D MkII also recently upgraded her Mac from Aperture 2 to 3, and hasn't experienced any problems. We've tried importing RAW files from my (non-MkII) camera to her Mac (with the default RAW Fine Tuning settings), and get the same results as with my own Mac (i.e. strange colors), so the problem seems to be related to the camera model.
    I've also noticed that scanned greyscale tiff images (including images that were originally imported under Aperture 2) are changed when first displayed by Aperture 3 - they become darker and more contrasty, with lots of information lost in the shadow areas.
    I've also tried removing Aperture preferences, Aperture itself, and re-installing from download, with no change in the problem. (Aperture is the current latest version, 3.3.2.)
    Has anyone experienced similar problems?

    I'm having the same problem.
    iMac running Mac OS X Lion 10.7.4 and Aperture 3.3.2.  Workflow is importing through Canon's DPP and then using referenced images in Aperture.  The images look great in LR4, or Canon's DPP but are flat and dingy in Aperture.
    There's a free preset that goes part way to fixing it at http://theapertureblog.com/2011/02/10/my-aperture-workflow-for-working-with-cano n-5d-mark-ii-files/
    but as good as this fix is, it doesn't quite do the trick. [not being a hater, and not saying I can do better]
    I just got back from shoooting 1,500 images with a 5DMii and a T2i using Canon 24-105L IS, 70-200 2.8L, 50 1.8 and a Sigma 120-400 and the T2i images are not just better, they're in a different league.
    I've tried shooting in Faithful, Neutral and also toggling these presets in different ways and still can't get Aperture to match what I see on the camera's screen or in other Apps.  I love the interface and DB of Aperture, but what's the point of using it if it doesn't produce and awesome image in the end?

  • Problems with Netscape...

    Hi friends,
    (Apps: 11.5.7 DB: 8.1.7)
    In selfservice I have a link to an image stored in database ... when I do click with Internet explorer, it shows the image withput problem but.. if I try to do it with Netscape (6.2) It appears a page with ascii chars... Any idea of this?
    It doesn't occurs with Firefox...(it runs ok)
    Thanks,
    Jose.

    Jose, Netscape 7.2 is certified with:
    - Oracle Applications patch 9 (11.5.9) or later
    - Oracle Developer 6i patchset 15 (6.0.8.24.x) or later
    - Oracle Applications Framework 11i.FWK.H or later
    - Windows XP/2000
    - JInitiator 1.3.1.x
    NOTE: Netscape 7.2 is no longer supported by the vendor. Oracle will continue to offer support for this browser with E-Business Suite on a 'Best Effort' basis only. Consequently, where issues are due to problems with the browser, we may, where necessary, require customers to upgrade or change their browser to resolve the issue.
    No future certification of the Netscape browser is currently planned by Oracle. Firefox browser by Mozilla.org is certified for E-Business Suite.
    Note: 285218.1 - Recommended Browsers for Oracle Applications 11i
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=285218.1

  • Bluetooth File Transfer Problem with Video Clips -...

    Hello!
    I am posting this problem even though a similar one is claimed to be solved ...
    I have a similar Problem with BT video clip file transfer in my E5-00 as someone had earlier with music files (SW up to date). Except that in this case the files are unique video clips received from one of the latest Samsung Android phones via Bluetooth (don't ask me which format).
    Tried the obvious first, using Windows File Manager over USB. Even Windows Search could not locate the files, not even using wildcards.
    Also tried using Ovi Suite Syncronisation, but the files did not appear in either Photos/Videos or Messages (even though the files are in the SMS Inbox - does not make sense why). 
    The problem in applying the solution approach presented here for Music seems to be that the files cannot be played at all in my E5-00's. Therefore I don't get as far as to the menu where the E5 would ask whether or not the files should be saved or not.
    So far I have not been able to connect to an old bluetooth laptop (Windows XP) so that the Bluetooth Exchange would connect let alone seen whether the BTexchange works in this case or not.
    Is there any other chance of getting to the files through the directory structure? If so, please give me the (Windows) directory path? Any other advice than switching to Android?

    Unfortunately I have reached an impasse.  If I touch a video clip (in organizer) the system crashes.  I mean locked up cold. I'm not sure what has caused this but I do know that I will not be able to communicate correctly or sufficiently with you in order for you to help me out.
    I've found PS and Premier to be very difficult to work with.  Very, very frustrating.  Photography, both still and video, is not as enjoyable as it once was.
    Again, I very much appreciate your initial help and if I get to a point where I've improved my situation ... I'll reach out again.  Thanks

  • Problem with Netscape: DIV

    Hi All,
    When i put a checkbox in DIV tag int HTML page
    and open it with Internet Explorer I can see the checkbox. When I open the same page with Netscape I can also see the checkbox.
    But if I put some style in the DIV tag, in Internet Exploer I can see checkbox but in Netscape I can't.
    What should I do to see the checkbox (which is in TAG)in Netscape?
    I work with Netscape 4.7
    Many thanks

    Hi,
    Netscape will consider each Div tag as a new document,anyhow for that u should apply the absolute position.So u have to create a form inside the div tag to access the checkbox u have created.
    Ganesh

  • RAW file rendering problems with Pentax-k5

    Since a few weeks I have serious problems with the raw rendering in aperture 3.4. I have done everything to solve this problem, but until now without succes. I have upgrade with mountain lion OS X 10.8.2 and I use the latest version of aperture 3.4.3 RAW 402 build 672.6.
    Does anyone have this problem to? Or do you know how to solve this problem?
    Regards
    Jan K.

    Jan,
    that may be the same problem as discussed in this thread. Do you use in-camera settings to enhance your pictures? these will not be captured in the raw processing that Aperture does, but the pentax software understands the in-camera settings:
    Image Previews In Aperture 3 - Canon 5D MK2
    Regards
    Léonie

Maybe you are looking for

  • Iphone 5S no longer recognized in ITunes and so cannot sync

    Iphone 5S is no longer recognized in ITunes so it cannot sync.  I am not seeing the driver listed and therefore the recommendation to repair the driver does not work for me.  Have rebooted, deleted Itunes and reuploaded many many times.  I have read

  • Install sequence and HD Repair

    I have an intel MacBook with OS 10.4 (Tiger?) and would like to install snow leopard. I've recently run the Verify Disk function in the Disk Utility application. It reports that my HD needs repaired; the disk has an invalid node structure and the HFS

  • Upgrade CS5 Production Premium German to CS6 Production Premium English?

    Hello, I own CS5 Production Premium in the German version and would like to upgrade to CS6. Is it possible for me to upgrade to the English version? If yes, how can I do this?  Will it work to just go to the Adobe Online Shop and put: I want to buy:

  • Does router telnet port need to be open?

    We are a small office whose computers connect to the internet through a Netopia Cayman series router (ethernet). No IT guy ---it was set up by "that phone guy" several years ago who said the firewall was set up. can't find any written manuals at the

  • Price for a year old Yoga 13

    Hello I have the opportunity to buy a year old Yoga 13 128GB SSD 4GB RAM i7 processor However I have no idea of what is a fair price and have not yet found any similar specs and age being sold online. Can anyone guide me as to a fair price. I know th