FileReference.download in linux

Hi All
     I am developing an application to use in both linux(ubuntu) and windows.
     In that i am using FileReference.download to save the file locally in windows but this is not working in linux.
     Is there any other possibilities(method) to save the file locally in both linux and windows?
     Please someone help me..
Regards
Preethee L

Hi Preethee,
Can you post the code snippent used in the application for saving the file
I have tried following code on my Linux box (Ubuntu 10.10) and its working fine. This saves the file in documents folder of the user machine
                var f = new FileReference();
                try {
                    f.download ( new URLRequest ( "http://servername/download.text" ), "foo.txt" );
                catch (e:Error)
thanks
Ashish

Similar Messages

  • FileReference#download() and filename question

    On the server side I set a HTTP header as
    Content-Disposition: attachment; filename=myfilename.txt
    Is it possible to get this information in Flex client? The FileReference#download() function gives a possibility for a name to set on the file browser, but I can't figure out how to get it from the server. By default, the function uses the remote URL.
    Any ideas?
    Thanks.

    Lawcats please see Install and update apps - https://helpx.adobe.com/creative-cloud/help/install-apps.html for information on how to install the Adobe Creative applications included with your membership.

  • Downloading Images - FileReference download error 2176

    Hi everyone.
    I'm trying to download some images but getting this error "Error #2176: Certain actions, such as those that display a pop-up window, may only be invoked upon user interaction, for example by a mouse click or button press."
    The trouble is, it IS running off a button click - just indirectly.
    I'm trying to design a good architecture for my program, so have the Application, a dataStore and some value objects, for example, a pricebook containing and array of products, each called PricebookVO and ProductVO.
    What I'm doing when the application loads is doing a database query with another API that gives me a pricebook and all of its products, and i populate the value objects.  Relationship is obviously  PricebookVO -< ProductVO.  I wanted to download the images for the products at the same time but it won't let me due to the error above, so what I have now is a button bar and when the user clicks a button an event is bubbled up to the Application which changes the page, but what also happens is it checks to see if the user has clicked the Products button and if it has, it tells the PricebookVO to tell each of its ProductVO's to download their image (from a URL that was saved from the query.
    Presumably the error im getting now is because the download is not directly summoned by a user event but by an indirect event (ie user pushes button, code calls code which tries to download the file).  How can I download the images and still maintain my architecture?
    Also, am I getting confused?  I want to get a file from a server and save them in an mx.controls.Image on the ProductVO record, do I use the FileReference.Download method or something else?  Because on further inspection it looks as though the download method is for downloading something to the local machine with a download dialog box?
    Thanks
    Steven

    Thanks for all your help Peter, its much appreciated.  I hate that useless feeling when learning a new language!
    So anyway, I was initially using image.source but thought to myself that's probably referencing the image from its server source which might be quite a hog, so wanted to store it myself, but if you say image.source does indeed handle the image itself and not just reference it from the source, thats good.
    My only remaining query is regarding how it is displaying.  I have a tileList which is rendering the images and it does work, however the images are loading on screen as I watch them, and if I scroll I then have to wait again whilst the images load.  If I then scroll back to the previuos part of the screen, where the images had previously already loaded, they have disappeared again and I once again have to wait for them to load.
    I know normally you'd embed them, but dont see how thats possible with the way I'm having to load them from the server?
    I have a method in my datastore like this:
    public function getProds():ArrayCollection{
    var imgs : ArrayCollection = new ArrayCollection();
    for each (var pb : PricebookVO in pricebooks){
      pb.getProdCount();
      for each (var p2 : ProductVO in pb.products){
       imgs.addItem(p2);
    return imgs;
    and in my products page:
    <mx:TileList>
      <mx:width>100%</mx:width>
      <mx:height>100%</mx:height>
      <mx:itemRenderer>components.Thumbnail</mx:itemRenderer>
      <mx:dataProvider>{DataStore.getInstance().getProds()}</mx:dataProvider>
    </mx:TileList>
    components.Thumbmail is
    <mx:Image>
      <mx:width>100</mx:width>
      <mx:height>75</mx:height>
      <mx:source>{this.data.image.source}</mx:source>
      <mx:toolTip>{this.data.prodCode}</mx:toolTip>
    </mx:Image>
    So, how can I stop the tilelist from having to constantly reload the images?  I get the impression that the solution might end up using a lot of memory to store the images somehow, so advice on the best way to do this is appreciated.
    Thanks!

  • Download (método FileReference.download)

    Hello!
    I am writing from Colombia, so I hope forgive me for my
    English so basic and aid translator.
    My question is this:
    I need to use the method: download (FileReference.download
    method)
    to be updated a number of flv I have a computer but the
    disadvantage is that the customer asked me that was so hidden
    without participation of a user with keyboard or mouse, you can
    perform this task?
    Thanks

    you can't force a download on a user without their active
    participation (using some kind of interface device like a
    keyboard/mouse/joystick/etc).

  • FileReference.download Failing

    I'm trying to use FileReference.download for a user to
    download a file. (obviously)
    It's working just fine, for probably 99% of our users.
    However, for one user in particular, the "Save As..." dialog box
    never appears. Does anybody know of any firewall/anit-virus/other
    security settings that could block this? It's happening in FF 2.0
    and IE 6, with Flash Player 9.

    Have the one user use another machine in their location to
    see if it is consistent inside their network or the user's machine.
    Also have them right click over the app to be sure they have
    the correct version of the Flash player.

  • FileReference download location

    Hello,
    Is possible retrieve the location of a file downloaded with the FileReference.download() method? After the user receives the prompt to download and selects a location I would like to be able to retrieve that location.
    Thanks,
    Scott

    for a web-based app it only works in response to a user even like a mouse click or keyboard event. 
    When you use this method , consider the Flash Player security model:
    Loading operations are not allowed if the calling SWF file is in an untrusted local sandbox.
    The default behavior is to deny access between sandboxes. A website can enable access to a resource by adding a URL policy file.
    You can prevent a SWF file from using this method by setting the  allowNetworking parameter of the the object and embed tags in the HTML page that contains the SWF content.
    In Flash Player 10 and Flash Player 9 Update 5, you can only call this method successfully in response to a user event (for example, in an event handler for a mouse click or keypress event). Otherwise, calling this method results in Flash Player throwing an Error exception.

  • Filereference download issue on some browsers

    Hi, Im having a filereference download issue which is turning
    out to be rather elusive. I have it working great on my comp in ie,
    however on my comp with firefox, or with any browser on my father's
    computer we get the file browser popup and when we hit "save"
    everything SEEMS to go OK but the file doesnt get downloaded. Weve
    checked and re-installed all the browsers / flash plugins, and
    nothing has changed. No error handelers get tripped, and Ive
    checked the scope issue. The following is the code Im using,
    published to flash 8 AS 2.
    import flash.net.FileReference;
    _root.vars.fileRef = new FileReference();
    _root.functions.getit = function(){
    _root.vars.fileRef.download("
    http://www.myURL.com/myList.csv",
    "myList.csv")
    Thanks for your help.

    an absolute path would be something like:
    www.yourdomain.com/subdirectory/yourfile.ext
    (looking at the op's original message, i see he used an
    http:// prefix which isn't going to work in any
    case.)
    a relative path from yourdomain's main directory would be:
    subdirectory/yourfile.ext

  • Download to Linux 13 Mate

    I need to download on Linux 13 Mate. Any Idea?

    I am not sure which operating system you are using on your tablet but please see Digital Editions Supported Devices - http://blogs.adobe.com/digitalpublishing/supported-devices for a list of supported devices and applications to use with Adobe Digital Editions.

  • Fail to download Oracle Linux x64

    Hello.
    I study exam guide for taking 1Z0-052 and I wanted to download Oracle Linux for Oracle 11g Enterprise edition installation. I received such an error:
    Thank you for accessing Oracle E-Delivery. Due to your country location, we are unable to process your request. If you have an active support contract, you may request physical media by either submitting a Service Request or calling Customer Support. If you wish to purchase or evaluate our products on a 30-day trial please contact then appropriate Sales Representative for your country.
    There are no problems with downloading Oracle 11g Enterprise, I mean my country (Azerbaijan) is not on a list of restrictive countries.
    Could you help me please or suggest any alternative solution to my problem?
    Kind regards,
    Rustam Aliyev

    Moderator Action:
    This thread is locked.
    It is the same question you asked in your other (active) thread:
    https://community.oracle.com/thread/2621118
    Multiple postings of an inquiry will only fragment information and it will quickly get lost.
    As for how to get files?
    You use a computer that has the proper outside access, then you copy the downloads to transportable media such as a CDR or DVD-R disk, then you move the files to the system where you eventually need them.

  • Where do Applets gets download in Linux

    Hey All,
    Iam facing a problem. I hv developed a swing application n I'm invoking it using Netscape 6 browser under RedHAT linux 7 OS. The thing is whenever i change the code the modifications are not getting updated to the Swing applicaiton.
    I'm using Jboss as my app server and i deleted the files under /tmp folder also. Still the change is not getting updated. If i restart my system sometimes the changes are updated.
    Kindly let me know where the applet Code gets downloaded in linux OS. So that i can clear them n use it.
    Thanks in Advance
    Srini

    Hi,
    You should use appletviewer instead of netscape!!
    But if thats not an option I think you should look for a directory .netscape, its in your home directory
    What might help too, is turn off the cache of netscape
    Gl
    Luca

  • No db2 v9.5 download for linux x86-32 architecture ?

    Hi,
    I couldn't find db2 v9.5 download for linux x86 architecture.
    No support for this db2 version in x86 ?
    thanks
    Vilius

    No.
    According to PAM 32bit platforms are deprecated.
    Check
    http://service.sap.com/pam
    --> Click on the "SAP NetWeaver 7.0"
    In the Powerpoint that is opened check on page 2.
    Markus

  • Btn to Cancel FileReference download

    Hi, I can't figure out how to make a button cancel downloads
    started using FileReference. Below is the code that is used to
    start the download. If you could let me know the right code to put
    in the on(release) of my cancel button that would be great. I've
    spent so much time trying to figure this out, and I just can't get
    it. Thanks!
    import flash.net.FileReference;
    var listener
    bject = new Object();
    listener.onCancel = function(file:FileReference):Void {
    //the code for what to do when user hits cancel on dialogue
    box
    listener.onOpen = function(file:FileReference):Void {
    //etc etc these listeners go on
    };

    Sorry that I was not able to successfully provide an answer.
    As I said I use Windows, but I would have expected the functionality to be very similar with Linux.
    I am having difficulty understanding
    *exactly what it is that you are attempting to do,
    *and why you consider Firefox's behaviour to be anything other than as expected.
    Someone else may understand better, and it may help if you give a specific example.
    * explain what sort of material you are trying to download, eg computer programmes, video etc
    * what site you are using, with the name and the correct link
    * an example file you tried, again with name and link <br/>(it would help if you give examples of free publicly accessible sites and files)
    # explain what you did and what happened
    # explain what the expected behaviour was
    # explain why you think something is wrong
    There is always the possibility using specialist download managers but that is outside the scope of this forum.
    '''Did you read the information shown by the blue clickable links in my first message ?'''
    * specifically https://support.mozilla.com/en-US/kb/Downloads%20window#w_what-can-i-do-with-the-downloads-window
    Part of which is
    ''"Remove the file's entry: If you do not wish to keep a record of a particular download, simply right-click the file entry, then select Remove From List (This will remove the entry from the list; it will not delete the file itself). "''
    That also lists and explains: Pause, Cancel, Open the file, Open the file's folder, and Retry a download.

  • Why doesn't AS3 FileReference Download Work in IE/FF (Works fine in Chrome)

    I am generating an Excel file with Java on the back-end and it seems to work just fine in Chrome but for whatever reason it doesn't in FF/IE. I have the very latest of Flash in each browser listed from this site: http://helpx.adobe.com/flash-player/kb/find-version-flash-player.html
    I'm sending XML to the server, it is generating the Excel and sending it to the Flash. I'm performing the export by doing the following:
    private var _fileRef:FileReference;
    private function exportReport(e:MouseEvent):void
        _fileRef = new FileReference();
        _fileRef.addEventListener(Event.COMPLETE, excelExportCompleteHandler);
        _fileRef.download(new URLRequest("exportReport"), "report.xlsx");
        function excelExportCompleteHandler(e:Event):void {
            trace('complete');
    There are no error messages from Java/Flash. The browse popup comes up and I save the file the same in IE/FF as I do in Chrome. the trace('complete') is executed every time in every browser but the file only shows up when using Chrome.
    I also searched my filesystem and found temporary internet file shortcuts with the name of the file I was trying to download so it's as if it started the download but didn't finish it for some reason. The location of those files is AppData\Roaming\Microsoft\Windows\Recent Items

    Definitely not a timeout, it takes < 5 seconds for the web service call to finish
    I can also copy and paste the request url with data into the browser and it will successfully download the report just through the browser which made me realize I could use javascript as a non-ideal workaround solution to this problem.
    I would still love to know why it was failing and if anyone has any ideas that would be great but for anyone else with the same issue as me here is the workaround I used:
    as3 code (I used URLVariables to encode the data because trying encodeURI or encodeURIComponent didn't encode ' or " which would cause errors when doing the ExternalInterface.call()
    var reportData:String = getReportXML().toString();
    var variables:URLVariables = new URLVariables();
    variables.q = reportData;
    //Substring at 2 to trim off the 'q=' portion
    reportData = variables.toString().substring(2);
    ExternalInterface.call("function() { return downloadExcelReport('"+reportData+"')}");
    javascript code (I used a hidden form because I needed to be able to perform a POST because the xml data I was passing was too large for a GET)
    <script type="text/javascript">
        function downloadExcelReport(reportData) {
            reportData = decodeURIComponent(reportData);
            window.open("about:blank", "newWindow");
            document.getElementById("reportData").value = reportData;
            document.getElementById("reportForm").submit();
    </script>
    <form id="reportForm" method="post" target="newWindow" action="<%=SERVER_PATH%>excelReport">
        <input type="hidden" name="solutionReportXml" id="reportData" value="">
    </form>

  • Oracle 9.2.0.4.0 Download for Linux - Disk2 corrupt

    I have tried downloading Oracle 9.2.0.4.0 Database for Linux . Disk 1 and 3 are good, but Disk 2 gets a bad crc error when gunzip'ing. I have re-downloaded 3 times and get the same error.
    Can anyone help (Oracle themselves?)
    Donovan

    No Luck. I used GetRight as a download manager as suggested and still get the same error. I have used Winrar to extract the .gz as well as gunzip on Linux.
    Winrar error message is:
    ! C:\ISO-Images\Oracle9i Database\Linux\ship_9204_linux_disk2.cpio.gz: CRC failed in ship_9204_linux_disk2.cpio. The file is corrupt
    Any further suggestions would be greatly appreciated.
    Donovan

Maybe you are looking for