Problem Downloading a File To The User's PC

My application is based on the 10.1.2 app server and Oracle Portlets.
I need to download a file to the user's PC. When the file gets sent to the user I need to have a dialog box open up that asks the user where they want to save the file.
What I did was to set the Content-Disposition equal to
"attachment; filename=C:\exportFile.txt"
and the Content-Type equal to "application/x-download"
When I do this I receive the error:
ERROR: Failed to handle HTTP Request
java.io.UnsupportedEncodingException: Media Type of a TextResponseWrapper must start with "text/"
Has anyone successfully done this in the Portal environment before? Any ideas on a possible solution?
Thanks

Try using:
tell application "Finder"
set path_2 to quoted form of POSIX path of (folder of (path to me) as alias)
end tell
tell application "System Events"
do shell script "curl 'ftp://user:password@server//www/htdocs/current/l.txt' -o " & path_2 & "l.txt"
end tell
(41158)

Similar Messages

  • How can I copy programs (iWorks) and files from Time Capsule to my HD manually? The problem is that the migration assistant does not recognize my backup file and the user on the TC. (If I open the TC on finder, it it there though)

    How can I copy programs (iWorks) and files from Time Capsule to my HD manually? The problem is that the migration assistant does not recognize my backup file and the user on the TC. (If I open the TC on finder, it it there though)

    How can I copy programs (iWorks) and files from Time Capsule to my HD manually? The problem is that the migration assistant does not recognize my backup file and the user on the TC. (If I open the TC on finder, it it there though)

  • I am having a problem where pdf files on the web (i.e., links in a Word doc) open after an extended time and only as gobbldygook ( a file containing a series of characters and letters that make no sense).  This also happens for another Mac user coworker

    Hi There:  I am having a problem where pdf files on the web (i.e., links in a Word doc) open after an extended time and only as gobbldygook ( a file containing a series of characters and letters that make no sense).  This also happens for another Mac user coworker in my office, while the PCs don't have this problem...  Any help/suggestions for a fix would be most appreciated! 

    Just adding more info - MacBookPro running 10.5.8 and using Safari as the browser.  The problem comes and goes - sometimes the linked Word files will open OK, n others its just a strring of crazy characters... 

  • Launching Microsoft Access from Internet Explorer to view a downloaded MDB file opens the wrong file (not a problem if I use Firefox)

    When clicking on a link (in Internet Explorer 9) to download an Access MDB file and then choosing to open the file directly in Microsoft Access (2007) instead of saving it, the file is copied to Temporary Internet Files but Microsoft Access tries to open
    a different file and displays an (Unrecognized database format) error.
    When I click on the option to open the file, the MDB file is copied to Temporary Internet Files\Content.IE5 but instead of that file, Access tries to open a different (incorrect) file located in Temporary Internet Files\Content.MSO (e.g. in the above error
    message, NativeView.do is an XML file containing an error message).
    I don't see this problem with Word, Excel or PowerPoint files. When opening a Word file (without saving) the Word file is copied to Content.IE5 but an identical .tmp file is created in Content.MSO which when opened in Microsoft Word displayed the required file
    correctly. The same happens for Excel files. PowerPoint appears to be handled a little differently (no .tmp file created in Content.MSO but the required file is still copied to Content.IE5) but the PPT file is still opened correctly in Microsoft PowerPoint.
    I think the Content-Type "application/msaccess" is fine because Internet Explorer does launch Microsoft Access. It just tries to open the wrong file (or so I think). However, it looks like the file type is not being determined. Here is what I noticed
    when trying to open different Microsoft Office files using Internet Explorer:
    The last one is the MDB file. As you can see, only for this type of file, the "Type" (Microsoft Office Access 2007?) is not displayed in this Open/Save dialog box.
    On Firefox, I don't see this problem. When I tried clicking on the link to the MDB file in Firefox, Microsoft Access was launched and the file was opened correctly. Is there something I can do so the MDB file is opened properly using IE? I can add/change headers
    in the HTTP response that writes this file to the output stream (on disk) if that helps.
    Thanks for your time!

    Sounds like a problem symptom to be discussed in either an IE forum or an Access forum, not here.  How did you come to post here?  ForumsRedesign.  That might be an on-topic issue for this forum.  <eg>
    Can you find your way to either of those other forums easily from here?  Another on-topic question for here I think.   ; )
    Robert Aldwinckle
    Oops, my bad. Thanks for letting me know! :)
    I've re-posted it here: http://social.technet.microsoft.com/Forums/ie/en-US/1a818501-296c-42fb-8abb-ba914629c962/launching-microsoft-access-from-internet-explorer-to-view-a-downloaded-mdb-file-opens-the-wrong-file?forum=ieitprocurrentver
    Hopefully that's the right place for this.
    Cheers!

  • When i try download a file from the internet it looks like its downloading then when i go to open this file it opens up in the app text edit and says it cannot open i DOS mode? Can anyne help?

    when i try to download a file from the internet it starts to download but when its finished it opens up in the app "text edit" and it says this file cannot open in DOS mode.
    Can anyone help?

    It sounds like perhaps the file doesn't have an extension that the system recognizes. Is this all files, or just one specific one, and if so, which? What is the name (and extension, if it has one) of the downloaded file? What kind of file do you *expect* it to be? (PDF, or whatever). Renaming a file with the appropriate extension can often fix that kind of problem.
    Matt

  • Problem downloading a file via http

    Hi
    I'm just getting started with WLS (sp5) and am having a problem downloading
    a file via http. The document is stored in the main html docs directory and
    whenever I link to it or try to download it directly (eg:
    http://<host>:<port>/myfile.doc) I get the following error in a message box:
    Your current security settings do not allow this file to be downloaded.
    Can anyone point me in the right direction as to where I grant permissions
    to do this - I've tried using the weblogic.security.URLAclFile and adding
    the directory as a weblogic.io.fileSystem (a desperation move, I know).
    Thanks in advance,
    Peter Villiers

    PLEASE IGNORE THIS POST
    The problem was caused by someone (me though I honestly don't remember doing
    it), setting the content security level to high in my web browser which
    stopped this type of download.
    Peter

  • HT203200 has anyone ever had this problem? seems to be a problem in itunes, as i am having no problems downloading other files."There was a problem downloading "Outlander / Howard McCain". An unknown error occurred (-50)."

    has anyone ever had this problem? seems to be a problem in itunes, as i am having no problems downloading other files."There was a problem downloading “Outlander / Howard McCain”. An unknown error occurred (-50)."
    kinda suck to pay for something you cant use!..

    Try fixing up the validation issues...
    http://www.feedvalidator.org/check.cgi?url=http%3A%2F%2Fwww.stereogol.com%2Faudi o%2Fwimpy_podcast.php
    Not promising it will help, but it's worth a shot.

  • Download a file from the web

    Helo,
    I have to download a file from the web and copy it to the file system (ex: download from http://172.26.20.22/test.csv to \\server01\teste.csv).
    I must do this using only pl/sql and java sources, I have to do this calling a procedure from pl/sql and the server doesn't have any component installed.
    I've built a java procedure using java to download the file, but it give-me AccessControlException when trying to download.
    Can anyone tel me what permissions I should have to accomplish this? Is there any other easier way?
    Thanks.

    Thanks a lot! Your post was very helpfull.
    I create a procedure do download the file from the web and record in a network share.
    But I'm still having a problem while writing that each line in my source file generate a duplicate line in my destination one.
    Can you help me with that problem to?
    Thanks
    My procedure is below:
    create or replace procedure SP_DOWNLOAD(astr_url_orig varchar2, astr_cam_dest varchar2, astr_nome_arq_dest varchar2) is
    l_pagina utl_http.html_pieces;
    l_arquivo utl_file.file_type;
    begin
    l_pagina := utl_http.request_pieces(astr_url_orig);
    l_arquivo := utl_file.fopen(astr_cam_dest, astr_nome_arq_dest, 'W');
    for i in 1 .. l_pagina.count
    loop
    utl_file.put_nchar(l_arquivo, l_pagina(i));
    dbms_output.put_line(l_pagina(i));
    end loop;
    utl_file.fclose(l_arquivo);
    end SP_DOWNLOAD;

  • HT5678 I have problems saving pdf files in the web when I use Safari. I don't have this problem with firefox

    I have problems saving pdf files in the web when I use Safari.  I don't have this problem with firefox.

    do they save ok if Safari - Preferences - Security - Allow all other plug-ins is unchecked ?
    If so, likely an adobe or other pdf plugin
    Re-check the setting above & quit any browsers,
    Look in this folder by triple-clicking the line below, then ctrl-clicking it & choosing Services - Open
    /Library/Internet Plug-Ins/
    remove anything with pdf in the filename & test again
    Sometimes, plug-ins can be in the User Library folder :
    ~/Library/Internet Plug-Ins/

  • My i pod touch was erased in the find my ipod app this has set my i pod where i cant do a thing but see a black screen with a rotating circle in the middle of the screen. i tryed to restore and itdosent download actual file to the i touch

    my i pod touch was erased in the find my ipod app this has set my i pod where i cant do a thing but see a black screen with a rotating circle in the middle of the screen. i tryed to restore and itdosent download actual file to the i touch and i cant do a thing with it please help me fix this and if thereis a way with out lossing my data would be great but however it can be done please let me know asap thank u.

    Take it to an Apple Store and they may take care of it for you.
    Basic troubleshooting steps  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101
     In Memory of Steve Jobs 

  • I can not download my files from the cloud

    i cannot download or update any of my programs...i also cannot downlaod any of my files from the cloud it shows im still taking up like 30% of my memory but and i can see my files names but no thumbnail pics. and when i try to download them it keeps saying error...any help?? i hope i didnt lose my files.

    I am having the exact same problem.
    I can upload and sync files (so it seems) but I can not send links to download any files on the cloud.
    This is the window I recieve everytime I click on a file to view...

  • Issues opening downloaded docx files from the internet on my mac air...

    I have owned my Mac Air for nearly 1.5 yrs and never had an issue, until yestrday.
    I can download docx files from the internet no problem, but when I go to open them (after they have saved into my downloads folder) a pop-up window with "convert file from" appears? Alas I can not open any downloaded docx files from the internet/email etc! This is making work very difficult.
    Any suggestions would be greatly appreciated!

    that explains a lot, you didnt mention that critical part before.  I upload a lot to FTP sites as well
    originals fine.... but thru the server theyre corrupted, .....that narrows everything down.
    have you contacted sys admin for the server about this?
    see here:
    http://stackoverflow.com/questions/2477564/why-are-docx-files-being-corrupted-wh en-downloading-from-an-asp-net-page

  • Problem downloading JAR files after PIX 7.2(3) upgrade

    Hello, I have upgraded a PIX 515 Firewall from Version 6.3(4) to
    7.2(3) and am now experiencing problems downloading .jar files from
    some web servers. I have tried disabling the "inspect http" option but
    still not joy. I also tryied this:
    http://www.cisco.com/warp/public/110/pix-asa-70-browse.pdf
    But no luck.
    Have anyone had similar problems.
    Thanks in advance.

    1. Turn router off for 30 seconds and on again
    2. Settings>General>Reset>Reset Network Settings
    3. Settings>General>Reset>Reset All Settings

  • Problem downloading avi files

    Hi,
    I have recently had problems downloading avi files from rapidshare.de, because the avi files do not download to my desktop (a new ticket system prevents me from manually clicking on the link, and instead begins downloading the files automatically), but open and play in my browser (Internet Explorer 5.2). I cannot save these files to my computer or open them in my QuickTime application. Can I get some help as to how I can configure my browser to download avi files to my desktop, instead of opening them in the browser

    Hi erikson1,
    If the link is a direct liink to the avi file, you can just hold the 'control' key - click and hold the mouse over the link and then select "Download linked file to disk."
    If the link is to a html or other similiar web page that will play the file in it then it gets a little more complicated to get that avi file. Then you may have to view source of that page and find the direct link to the avi file for download.

  • Problem downloading .dmg files.

    Problem downloading .dmg files (Flash, Chrome, Firefox). Once I hit the download option Safari screen goes blank, actually grey and nothing downloads.

    Back up all data, then uninstall "Speed Download" according to the developer's instructions.

Maybe you are looking for

  • Unable to capture the String[] from a JavaCallOut

    Hi all, I am doing an application in which I need to do a java callout which accepts string and return a String array as output. The java class alone is working fine but when I do the Java Callout and pass the string I am getting *"<con:java-content

  • Possible to get deleted trash box back?

    First time poster here. I accidentally deleted one of my 'trash' boxes. Under "Trash" I have "on my mac" and also "Comcast". I didn't really understand why I had the Comcast one and deleted it. It still shows there but it has now become only a way to

  • Shuffling iPod albums through iTunes7

    Hi everyone, I am ready to tear my hair out - since upgrading to iTunes 7, I can no longer shuffle by album when playing songs from my iPod. What I like to do is keep all of my music on the iPod and listen to music with the iPod in disk mode. The iTu

  • Show 'Text' Document contents  instead of using Document Links

    I have a requirement from my customer that requires comments to be stored and display both on the planning layout and display instantly in query. I am aware that documents which type other than text is stored in BIN form, so my first approach is just

  • Os from 32 to 64 bit

    Per my reading speculation is that Snow Leopard may or may not force 62 bit installation, than the opposite side is 32 bit installation will be allowed. My business is centered on my iMac, financial records, Aperture, CS3, along with various 3rd part