Download file via Browser window

Hello,
I have a question about downloading a file. How can i Download the file via the browser ? I did get it working to download with flex but also get
"Error: Error #2176" this error with flash 10 which is not good :-/
Is there a way to download a file via the browser . i.e : with firefox download window , etc.
I have seen weborb doing it while i was downloading the weborb application, and i wanted to know if anyone has any idea or sample on how to get this done.
Help is appreciated .
Thanks.

You could write a Javascript function in the HTML page that accepts a URL string as its parameter. This function get then open a new window with this url. You could invoke this function it via the ExternalInterface API in Flex. I believe that would invoke the Firefox Download Manager.

Similar Messages

  • My new users can not upload files via browse

    Hi there;
    When my recent created users can not download files via the browse within the Internet interface.
    When I hit the via browse I face the following:
    500 Internal Server Error
    oracle.ifs.common.IfsException: IFS-10406: Invalid AttributeValue conversion (DIRECTORYOBJECT to Java DirectoryObject)
    oracle.ifs.common.IfsException: IFS-10200: Unable to access object (insufficient privileges)
    Any hint?
    Sasan Ebadian

    Hi Sasan,
    These are the ACL's of IFS:
    PRIVATE Grants no permissions to any other user. Other users cannot view, modify, or delete a user’s document in any way, unless changed by the owner.
    PROTECTED For folders only. Enables other users to see the files in the folder, add documents and folders to the folder, and remove documents and folders they have created from the folder, but are not allowed to delete the folder itself.
    PUBLIC Allows full access to the item. All users can make any changes that the owner can make.
    PUBLISHED Allows other users to view the contents, but they are not allowed to modify or delete the document.
    If you attach the ACL Public it must work!
    Bob

  • Launch pdf file through browser window.

    I tried this.String cmd="iexplore.exe http://subash/doc/help.pdf";
    try{
    Process p = Runtime.getRuntime().exec(cmd);
    }catch(Exception e)
    System.out.println("Error -- "+e);
    }I am getting Error --
    java.io.IOException: CreateProcess: iexplore.exe http://subash/doc/help.pdf error=2please give me a suggestion.
    Otherwise so any other way to launch pdf file through browser window.

    Hi,
    Column Name     ID     Pk     Null?     Data Type     Default     Histogram
    PT_SEQ_NO     1     1     N     NUMBER (10)          Yes
    SM_SERVICE_ID     2          N     VARCHAR2 (15 Byte)          Yes
    PT_FILE_PATH     3          Y     VARCHAR2 (100 Byte)          Yes
    PT_FILE_SERVER_PATH     4          N     VARCHAR2 (200 Byte)          Yes
    NO, I'm not storing that file in Blob. i'm not storing it in database. i'm just transfering it from client location to server location . That's it.
    But i'm storing both the path from where i picked the file and where i uploaded. That's client path in PT_FILE_PATH field and server path in PT_FILE_SERVER_PATH.
    now i want to get that file from server location and show it only on Browser.. Not storing in database, justing putiing in folder at server location.
    thanks
    kammy

  • Download file via jsp

    dear all,
    to download a *.txt-file via jsp i use following code:
    java.io.File file = new java.io.File("C:\\FileName.txt");
    response.setHeader("Content-Disposition", "attachment;filename=\""+file.getName()+"\";");
    response.setContentType("APPLICATION/OCTET-STREAM");
    response.setContentLength((int) file.length());
    if(file.isFile()){
         java.io.FileInputStream fis = new java.io.FileInputStream(file);
         java.io.BufferedOutputStream bos = new java.io.BufferedOutputStream(response.getOutputStream());
         byte b[] = new byte[(int)file.length()];
         int read = 0;
         while((read = fis.read(b)) != -1){
              bos.write(b,0,read);
         bos.flush();
         fis.close();
         bos.close();
    } the problem is:
    the file will be displayed in the browser IE6 (inline), but i want to open a save-dialog!
    any ideas?!
    thanks for help. andy

    up to now i tried another browser (mozilla firebird) and several settings about the contenttype like:
    - application/x-download
    - application/x-msdownload
    - application/x-octet-stream
    - application/octet-stream
    - application/download
    ... and the file-name like:
    *.zip
    *.txt
    *.exe
    but the browser shows the content of the file always inline (even *.zip and *.exe files!!).
    anyway, thank you for help.
    andy

  • Cannot open folder files in browser window

    Since the last 5 or so firefox update, i notice i am unable to open folder
    files in the browser window on most of the websites i
    have been on. Therefore if i need to upload a file on a website
    when i click the open folder button on the website, i am
    not seeing the folder window open with all my files on my
    computer that i need to select. Instead i have to use another
    browser to do all my uploads, and that breaks my momentum.
    How can this be corrected?

    Hi hardworker2014,
    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that temporarily turns off hardware acceleration, resets some settings, and disables add-ons (extensions and themes).
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu:
    *In Firefox 29.0 and above, click the menu button [[Image:New Fx Menu]], click Help [[Image:Help-29]] and select ''Restart with Add-ons Disabled''.
    *In previous Firefox versions, click on the Firefox button at the top left of the Firefox window and click on ''Help'' (or click on ''Help'' in the Menu bar, if you don't have a Firefox button) then click on ''Restart with Add-ons Disabled''.
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    When the Firefox Safe Mode window appears, select "Start in Safe Mode".<br>
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, theme, or hardware acceleration. Please follow the steps in the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.

  • Flash file in browser window

    I have a couple of pages that I am currently working on with
    links to browser windows with single images in them. These work
    fine, but I recently tried to create a link to a page with a single
    flash .swf file in it which I would like to open in a browser
    window. However, when I click on the link, nothing opens. Looking
    at the code view, it looks similar to the other pages where the
    single image opens in the browser window. Are Flash files not able
    to open in browser windows? If not, is there some other way to
    control the size and toolbars of the window?

    Got a URL to show us?
    Regards
    John Waller

  • Download file via terminal

    I want to download a http file via terminal, whats the command?

    curl -O http://path-to-file
    or
    curl -O ftp://path-to-file
    etc.
    FYI, That's the letter Oh, not the number Zero

  • Cannot download files via Bluetooth since upgrading to Yosemite

    I cannot download files, E.G. photos and spreadsheets, from my Windows phone to my MacBook Pro Retina since upgrading to OS 10.10 Yosemite.
    I can send files from the MacBook Pro to the Windows phone.
    Tried resetting PRAM, no luck
    Tried unpairing and repairing all devices, no luck
    Tried dumping "bluetooth.plist", no luck
    Tried cold start & Resart after each, no luck
    Devices are paired. Bluetooth Sharing is on.
    Help!

    PROBLEM SOLVED:
    Go to "System Preferences" - "Sharing" - "Bluetooth Sharing" - "Folder for selected items:", and select a folder."
    No folder is selected.
    Prior to the upgrade the Folder had been set to "Downloads", so I reset it to "Downloads" and it now works.
    Praise the Lord!!

  • Fix downloaded files permissions on Windows 7

    Almost every time I download a file from various sources, Firefox adds a padlock to the downloaded file icon. This means that the file can only be accessed by the current user unless I change back the file permissions manually.
    Is there any way of stop the downloads from changing their file permissions? I've only noticed this happening for a week or so, currently I'm on Firefox beta 26.0

    You can try to set the browser.download.manager.scanWhenDone pref to false on the <b>about:config</b> page to prevent Firefox from adding zone identifier data to the downloaded files.
    See:
    *http://kb.mozillazine.org/Unable_to_save_or_download_files

  • How to cache swf files via browser

    I notice that games on facebook ara caching lot's of swf files in browser temparary folder, I'm wondering how this is done, I'm new to web techs :> Somebody help? Thanks a lot.

    AndrewYuCWA1987 wrote:
    Thank U
    but what i attend to do is:
    - swf resource is need, and there're a lot
    - they're on the server first
    - when loading swf needed, access loacally file first, if there's none, get remote swf resource from server
    - after load from remote, cache swf files locally for the next application runs
    How can this be done?
    all the above happens by default unless a user clears their cache or has not browser cache- which you can't control.
    I met sand box issue when I apply URLRequest api, and I've looked into game's on facebook and other SNS platform, caching is the
    common way to build a game, there's a "loader.swf?v=XXXX" there, and if I copy it to file system and run it, surely it's doing URLLoading and trigger a sand box trouble like I do, but when it's applied in the browser, or say in the way it's originally used, it worked,
    So I doubt there's something I can do to implement the goal I've imagined, question is, how ) ;
    appending a changing query string (?v=XXX) to a url is a common way to prevent browser caching by making the browser think each of those swfs are different by virtue of the changing query string.

  • Downloading file via HTTP

    Hi,
    is it possible or exist some adapter or service, which can
    process(or download) file placed on HTTP server?
    Thanks
    Martin

    Chtira,
    I've done it in JDeveloper with HttpServlet class and not in BPEL. I've overridden the doGet and doPost methods.
    doGet looks something like this:
      public void doGet(HttpServletRequest request,
                        HttpServletResponse response)
        throws ServletException, IOException
        response.setContentType(CONTENT_TYPE);
        PrintWriter out = response.getWriter();
        out.println("<html>");
        out.println("<head><title>Communication</title></head>");
        out.println("<body>");
        out.println("<p>GET method is not supported. Please use POST method for XML messages.</p>");
        out.println("</body></html>");
        out.close();
      }doPost method is a bit more complicated. Basically I'll call my BPEL processes with the XML messages I receive but I'm still struggling with XML validation against a schema in this servlet class.
    When you have the class you have to put something like
      <servlet>
        <servlet-name>HttpServletPost</servlet-name>
        <servlet-class><your package>.HttpServletClass</servlet-class>
        <load-on-startup>1</load-on-startup>
      </servlet>
      <servlet-mapping>
         <servlet-name>HttpServletPost</servlet-name>
         <url-pattern>/Communication/*</url-pattern>
      </servlet-mapping> in your web.xml file.
    Hope this helps you somehow.
    BB

  • Open download file in new window.

    Hi,
    I m using oracle 11g and Apex4.0.2 version
    Browser IE8.
    I m downloading PDF file when a button is pressed.
    The code will be
    htp.init;
    OWA_UTIL.MIME_HEADER(NVL(L_V_MIME,'application/octet'),FALSE);
    owa_util.http_header_close;
    WPG_DOCLOAD.DOWNLOAD_FILE(BLOB_content);
    It works fine by opening the pdf file.
    But I need the pdf file to be opened in new tab page or in new window.
    Is it possible?

    vk,
    it seems your page process is not triggering or it was not working quite right in the first place.
    It should be something lke this:
    Name: DOWNLOAD_FILE
    Type: PL/SQL anonymous block
    Process Point: On Submit - After validations
    When Button Pressed: DOWNLOAD
    Source
    /* if the BLOB content is stored in wwv_flow_files: */
    DECLARE
      l_blob_content wwv_flow_files.blob_content%TYPE;
      l_mime_type    wwv_flow_files.mime_type%TYPE;
    BEGIN
    SELECT blob_content, mime_type
    INTO  l_blob_content, l_mime_type
    FROM  wwv_flow_files
    WHERE  ... /* how you access your file */
    htp.init;
    OWA_UTIL.MIME_HEADER(NVL(l_mime_type,'application/octet'),FALSE);
    owa_util.http_header_close;
    WPG_DOCLOAD.DOWNLOAD_FILE(l_blob_content);
    --apex_application.stop_apex_engine;  /* APEX 4.1 and above */
    apex_application.g_unrecoverable_error:= true;  /*before APEX 4.1 */
    END;Jens

  • Download File Via JavaScript Calls From Website

    Hello,
    I am currently trying to create a program in c# that will download the file "PracticeProfiles.xls" from this website:
    http://fingertips.phe.org.uk/profile/general-practice/data
    I need to somehow on navigation to this site pass the javascript calls "showExport();exportData();", which will start the download.
    Any help would be greatly appreciated.
    Many Thanks

    The link has a method which apparently works, however I had to modify a few things to make it compile:
    public void DownloadIEFile(Browser browser)
    HwndSource source;
    source = HwndSource.FromHwnd(WatiN.Core.Native.Windows.NativeMethods.GetWindow(browser.hWnd, 5));
    Window windowMain = source.RootVisual as Window;
    System.Windows.Automation.TreeWalker trw = new System.Windows.Automation.TreeWalker(System.Windows.Automation.Condition.TrueCondition);
    System.Windows.Automation.AutomationElement mainWindow = trw.GetParent(System.Windows.Automation.AutomationElement.FromHandle(browser.hWnd));
    source = HwndSource.FromHwnd(WatiN.Core.Native.Windows.NativeMethods.GetWindow(new WindowInteropHelper(windowMain).Handle, 5));
    Window windowDialog = source.RootVisual as Window;
    // if doesn't work try to increase sleep interval or write your own waitUntill method
    Thread.Sleep(1000);
    windowDialog.Activate();
    System.Windows.Automation.AutomationElementCollection amc = System.Windows.Automation.AutomationElement.FromHandle(new WindowInteropHelper(windowDialog).Handle).FindAll(System.Windows.Automation.TreeScope.Children, System.Windows.Automation.Condition.TrueCondition);
    foreach (System.Windows.Automation.AutomationElement element in amc)
    // You can use "Save ", "Open", ''Cancel', or "Close" to find necessary button Or write your own enum
    if (element.Current.Name.Equals("Save"))
    // if doesn't work try to increase sleep interval or write your own waitUntil method
    // WaitUntilButtonExsist(element,100);
    Thread.Sleep(1000);
    System.Windows.Automation.AutomationPattern[] pats = element.GetSupportedPatterns();
    // replace this foreach if you need 'Save as' with code bellow
    foreach (System.Windows.Automation.AutomationPattern pat in pats)
    // '10000' button click event id
    if (pat.Id == 10000)
    System.Windows.Automation.InvokePattern click = (System.Windows.Automation.InvokePattern)element.GetCurrentPattern(pat);
    click.Invoke();
    However I am getting null when I try to get the hwnd source, can't see why?
    Any Suggestions?
    Many Thanks

  • Downloading files on a Windows 2008 R2 server using IE 9

    Hi.
    Trying to download some fiels from Microsoft download center, but receiving the following message: "Your current security settings do not allow this file to be downloaded"
    Have tried the following in IE 9:
    Turned off Protected mode.
    The page is added to Trusted site.
             Trusted site is configured as follows:
                             Dowloads is Enablet
                            Font download is Enablet
               Under Miscellaneous has the following settings:
                            Allow META REFRESH, enablet
                             Allow webpages to use restrict3ed protocols for active content, Prompt
                             Allow webpages tgo open windows without address or status bar, enablet
                             Launching applications and unsafe files, Pompt
                             Launceing programs and files in an IFRAME Promt
    Still not possible to download a security patch from Microsoft download senter.
    Looking forward to a solution.
    Thank you in advance.
    Kind regards
    DagN

    Hi,
    Please check the following blog to 
    see whether you can resolve the issue.
    http://jaredheinrichs.com/your-current-security-settings-do-not-allow-this-file-to-be-downloaded.html
    Important Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to
    you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
    There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.
    Best Regards,
    Vincent Hu

  • How can servlet return data as download file from browser ? !!! URGENT !!!

    My servlet query data from database and would like to return the data as text file.
    How can I return data to the browser as user click a file to download ?
    How can I set the file name ? (default name is the servlet name that I don't want it to be)
    Which content type should I return to browser to prevent browser to display data immediately but save instead ?
    Thank you very much !

    I am having the same issue. Did you ever discover a way to change the "file name" in the browser. I've tried changing numerous HTTP header fields, to no avail.
    Marc

Maybe you are looking for