Download link not working in Adobe AIR app.

I wanted to let users browse my site as a desktop application,
but didn't have the time to write an application from scratch. SO tried following trick. Created a simple Adobe AIR application with a single page. This page redirects to my website and hence loads the website in the AIR window.
Everything is working fine except that the download links are not working. The download doesn't start. Nothing happens. What is the solution here? Any help is appreciated.

I am now facing the same problem. I wrote a servlet .
code like this
         response = (HttpServletResponse) faces.getExternalContext().getResponse();
         response.setContentType("application/x-download");
         String agent = request.getHeader("USER-AGENT");
         boolean isIE=false;            
        if (null != agent && agent.indexOf("MSIE")!=-1) { 
            isIE=true;
        if (isIE) {
            fileName = URLEncoder.encode(fileName, "UTF-8");
        } else {
            fileName = new String(fileName.getBytes("utf-8"), "ISO-8859-1");
        response.setHeader("Content-Disposition","attachment;filename="+fileName);
        ServletOutputStream os = response.getOutputStream();
        byte b[]=new byte[1024];
        int n;
        while((n=in.read(b))!=-1){
            os.write(b,0,n);
       in.close();
       os.close();
and i open a new window refer to above jsp ,also i set a breakPoint at os.close(),the program has passed through,but nothing happened in the window.
If i use IE or FF ,the browser will open a small window to allow me select whether open or  save the file.So can anybody give me some advice.Is it because air using webkit engine and the engine does not do this kind of job?
        Thanks.

Similar Messages

  • Website image and zip file download links not working in Dreamweaver Air application

    Hi
    I have successfully created and AIR app for an existing business website using the Dreamweaver AIR Extension. The site works very well in all respects except for the part where we have high resolution images and zip files available for download. The download links refuse to do anything, and right-click (PC) / ctl-click (Mac) does nto work either.
    I suspect this may be an AIR sandbox/security issue but am I correct and what can I do to fix it?
    Thanks in advance for any assistance you may be able to give.
    Martin

    I am now facing the same problem. I wrote a servlet .
    code like this
             response = (HttpServletResponse) faces.getExternalContext().getResponse();
             response.setContentType("application/x-download");
             String agent = request.getHeader("USER-AGENT");
             boolean isIE=false;            
            if (null != agent && agent.indexOf("MSIE")!=-1) { 
                isIE=true;
            if (isIE) {
                fileName = URLEncoder.encode(fileName, "UTF-8");
            } else {
                fileName = new String(fileName.getBytes("utf-8"), "ISO-8859-1");
            response.setHeader("Content-Disposition","attachment;filename="+fileName);
            ServletOutputStream os = response.getOutputStream();
            byte b[]=new byte[1024];
            int n;
            while((n=in.read(b))!=-1){
                os.write(b,0,n);
           in.close();
           os.close();
    and i open a new window refer to above jsp ,also i set a breakPoint at os.close(),the program has passed through,but nothing happened in the window.
    If i use IE or FF ,the browser will open a small window to allow me select whether open or  save the file.So can anybody give me some advice.Is it because air using webkit engine and the engine does not do this kind of job?
            Thanks.

  • Purchased Lightroom 5 and Download link not working. Please advise

    I have Purchased Lightroom 5 followed the download instructions and Download link not working.
    I get a dialog box stating that I have Explorer 4 and I need a later version.
    I am in fact running Explorer 10.
    Please advise.
    Bob Spree
    England

    Please see http://forums.adobe.com/thread/1229333 where this topic has been discussed.

  • Webcam not working with adobe air

    hey frnds,
    i'm trying to capture webcam snaps and storing it on local desktop.
    Below code of capuring snap is working with flex but same code not working in adobe air.
    I'm using Adobe Flash builder beta 2
    is any setting is required to use webcam with adobe air?
    i'm using following code
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                           xmlns:s="library://ns.adobe.com/flex/spark"
                           xmlns:mx="library://ns.adobe.com/flex/halo" creationComplete="init();">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
                import mx.controls.Alert;
                import mx.core.UIComponent;
                import flash.media.Camera;
                import flash.media.Video;
                private function videoDisplay_creationComplete() : void
                    var camera:Camera = Camera.getCamera();
                    if (camera)
                        videoDisplay.attachCamera(camera);                   
                    else
                        Alert.show("Oops, we can't find your camera.");
                private function capture_click() : void
                    var snap:BitmapData = new BitmapData(320, 240, true);
                    var snapBmp:Bitmap = new Bitmap(snap);
                    snapBmp.width = 320;
                    snapBmp.height = 240;
                    if(snapshotHolder.numChildren > 0)
                        snapshotHolder.removeChildAt(0);
                    snapshotHolder.addChild(snapBmp);               
                    snap.draw(videoDisplay);               
        ]]>
        </fx:Script>
        <mx:HBox>
            <s:Panel title="Video">
                <mx:VideoDisplay id="videoDisplay" creationComplete="videoDisplay_creationComplete();" width="320" height="240" />       
            </s:Panel>
            <s:Panel title="Snapshot">
                <mx:UIComponent id="snapshotHolder" width="320" height="240" />
            </s:Panel>       
        </mx:HBox>
        <mx:HBox>
            <mx:Button label="reload camera" click="videoDisplay_creationComplete();"/>
            <mx:Button label="capture" click="capture_click();"/>  
        </mx:HBox>
    </s:WindowedApplication>
    Camera is connected but cannot see anything inair,
    plz guide me in this.
    thx in advanced,

    I seem to have the same problem. When creating an web application it works fine, but when creating a desktop application it doesn't. I can't figure out what the problem is.
    Does anyone know?

  • Verizon Access Manager Download link not working

    Hi,
              Verizon Access Manager Download link not working, Following Links
    http://www.vzam.net/download/download.aspx?productid=872
    http://pcdn2-download.vzw.com/win/7.7/VZAM_7.7.1_2727b-AC30-Web.exe
    plz help to download verizon five spot access manager.
    thanks
    karthirocks

        Hi karthirocks! I'm sorry to see you're having any difficulties using these links. I've clicked on both, but had no problems getting pages to launch or in getting the application to download. If this is still a problem for you, please describe the issue you're experiencing. Also, please share the browser version you're using, and if you've enabled any security feature that prevents access to certain secure sites or services. Thanks!
    DionM_VZW
    Follow us on Twitter www.twitter.com/vzwsupport

  • CD installation disk download link not working

    I'm trying to download the CD installation disk for the WRT400N.  The disk came with the router
    but the glue on the label got on the disk and makes it almost unreadable.
    Can someone check that link to see why the .iso file is only a couple of bits in size?  Should be @400mb.
    Thanks

    Yes, it can be configured without the disk, I realize that.  This is my first experience with routers and wi-fi, so I would like a better copy of this disk I paid for.  But the link for that download does not work.  I was addressing that.
    The disk I got had a dot of glue from the label on it and while it worked, it took almost half an hour to get it done.
    Part of the disk is unreadable when I tried to copy it, so I want to download the .iso file to create a backup disk.
    That's it!

  • Adobe premiere elements trial download link not working

    can anyone download the trial version? the golden yellow download button is frozen whenever I try to download premiere elements,
    http://www.adobe.com/cfusion/tdrc/index.cfm?product=premiere_elements&loc=en_us

    actually, note to other downloaders, when this screen below pops up,
    click the link at the top of the pop up downloader to install Akamai downloader,reads : dont see the installer? try reopening it ( you click that link in the download pop up
    I was only able to download 252mb of a 1.2 gig file, then had to restart the download the next day because I had used the direct links for file 1 and 2 at the bottom of that initial pop up as can be seen by the two download windows to its right, if you need to resume your download because of lost internet connection or time reasons you`ll have to start again,,
    however once akamai has installed automatically, or you downloaded and installed manually, you`ll get this download window when you attempt downloading premiere elements 8 (or any other adobe software).
    once the download is complete a golden yellow tab will read "install now" in the akamai downloader window,
    unfortunately for me I received the following error on installation, even if  trying to install to different folder I get the same error,
    trying to manually open the file gets me this error
    so far this has been a breeze,
    using win7 64bit. quadcore. HP pavillion laptop. shouldn`t matter

  • -webkit-linear-gradient not working with Adobe Air 3.0

    Hi -
    I recently downloaded Adobe Air 3.0 after reading that gradients are now supported (http://www.adobe.com/devnet/air/ajax/articles/air_and_webkit.html), but I have not been able to successfully implement them. For example, I have the following CSS class defined:
    .gradient_test {
         background-image: -webkit-linear-gradient(#68AB34, #3D721B);
         padding: 5px;
         color: #FFF;
    This should (and does in Chrome, Safari, etc) create a linear gradient going from light to dark green. But in Air it just appears as if no background has been applied to the selector. Am I missing some unique way to be able to apply gradients in Adobe Air 3.0?
    Thanks,
    Zach

    I don't know why this hasn't been addressed. I'm seeing the exact same problem. I've tried every permutation, but haven't been able to generate a gradient using any existing standard for webkit or otherwise (even though it's allegedly supported).
    -Matthew
    EDIT: I discovered that when the app is compiled, the gradients work fine. This one is driving my crazy, because I want to be able to test them. I get a mix of CSS support, depending on how the app is run.
    From Dreamweaver CS3 "Preview" - My CSS doesn't show gradients and shows embedded web fonts.
    From ADL - My CSS fails almost entirely, but some if it gets loaded.
    From the compiled AIR file: fortunately, everything seems to display correctly, but it's really a bad scenario for development / testing. Not sure what to do.

  • FlashPlayer Distribution Agreement - Download link not working (404)

    Hello
    We’ve got a new distribution agreement, but there seems to be a problem with the download link:
    "Adobe® Flash® Player
    Unter der folgenden Adresse können Sie die gewünschte Flash Player-Version zur Weiterverteilung herunterladen:
    http://www.adobe.com/de/products/flashplayer/distribution4.html#http://www.adobe.com/de/products/flashplayer/distribution4.html#ID_RemovedIDREMOVED
    We do know Adobe is changing the method how distribution partners should access the binaries, we saw in the mail that the old method will be decommissioned not before the 18 of November.
    "• The existing hosting site URL will be decommissioned on November 18, 2014."
    Can someone please investigate our issue?
    Kind Regards

    Hello,
    The folks responsible for that page are working to fix the localized pages, which are not displaying.  In the mean time, please use the English version of the page, Adobe Flash Player Distribution | Adobe.  Thank  you.
    Maria

  • LR Download Link Not Working

    I am trying to download a trial version of Lightroom, but the link button does not respond. I have tried on two different computers.
    Here's the page:
    https://www.adobe.com/cfusion/tdrc/index.cfm?product=photoshop_lightroom
    I already have Creative Cloud subscription which now includes Lightroom. I have everything installed on two allowed computers. How can I get just Lightroom onto a third computer? Please tell me I don't have to purchase full product
    Okay, I found this link in another thread and it worked:
    http://www.adobe.com/support/downloads/product.jsp?product=113&platform=Windows
    The link on the main download page does not work

    This thread about I E not working for the lightroom 4 download is from August of 2012.
    It's now November of 2012 and I found this thread after trying to download LR4 without success, using multiple computers with IE as the default browser.
    I just tried it with Chrome and it worked just fine.
    What the **** is going on here?
    IE is still a major browser and it appears the Adobe has completely ignored this issue.
    This is a problem with the Adobe site and there should be ramifications to Adobe for not even posting a warning on the download page so that people can at least use another browser and avoid so much troubleshooting.
    Again, this is from months ago.  You should be ashamed Adobe.  Utterly disgusting way to treat your clients.

  • Webcam and Whiteboard not working with Adobe AIR with Adobe Flash Builder

    Hi,
    I am trying to build a  simple chat service using Adobe Flash Builder target for desktop AIR( my final objective is to port it to android). My adobe AIR version is 2.5.0 and below is my source code:
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:s="library://ns.adobe.com/flex/spark"
       xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:rtc="http://ns.adobe.com/rtc">
    <fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
    <rtc:AdobeHSAuthenticator id="auth" userName="Yy" protocol="rtmfp"/>
    </fx:Declarations>
    <rtc:ConnectSessionContainer id="session" authenticator="{auth}" roomURL="https://collaboration.adobelivecycle.com/yytan1987/myfirstroom" width="100%" height="100%">
    <mx:HBox width="100%" height="100%">
    <mx:VBox width="25%" height="100%">
    <rtc:WebCamera width="100%" height="50%"/>
    <rtc:SimpleChat width="100%" height="50%"/>
    </mx:VBox>
    <rtc:SharedWhiteBoard width="75%" height="100%"/>
    </mx:HBox>
    </rtc:ConnectSessionContainer>
    </s:WindowedApplication>
    Basically when i debug it with AIR, the chat is working properly but the webcam and whiteboard just don't work....I really don't know what's wrong with it already...Appreciate it if anyone can help,thanks!!
    Regards

    Hi,
    My take is , is your autopromote tuned on for the room. I mean whats
    your user role when an user enters the room(who is not host), is it 10
    or 50. If its 10 i.e. viewer , then he cant use his own cam etc. You
    need to take a look at the logs when an user enters and if its 10 and
    you want to give him these permissions, turn autopromote on from the
    devconsole for the room to make his role 50 i.e. publisher.
    I just now downloaded 2.5.1 AIR and created a new project with your
    source and I am able to use everything.
    Thanks
    Hironmay Basu

  • Please Help! Drag and drop does not work in Adobe AIR 3.1 (FlashBuilder 4.6)

    I am working on a PC is made of air and flashbuilder 4.6.
    Drag and drop application does not work in Flash Builder 4.6.
    However, the same source will work with Flash Builder 4.5.
    Please help me.
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                  xmlns:s="library://ns.adobe.com/flex/spark"
                                  xmlns:mx="library://ns.adobe.com/flex/mx"
                                  backgroundColor="#323232" width="100%" height="100%"
                                  initialize="init(event)"
                                  nativeDragEnter="onDragEnter(event)"
                                  nativeDragDrop="onDragDrop(event)">
              <fx:Script>
              <![CDATA[
                        import mx.events.FlexEvent;
                        protected function init(event:FlexEvent):void
                                  addEventListener(NativeDragEvent.NATIVE_DRAG_ENTER, onDragEnter);
                                  addEventListener(NativeDragEvent.NATIVE_DRAG_DROP, onDragDrop);
                        private function onDragEnter(event:NativeDragEvent):void
                                  if (event.clipboard.hasFormat(ClipboardFormats.FILE_LIST_FORMAT))
                                            NativeDragManager.acceptDragDrop(this);
                        private function onDragDrop(event:NativeDragEvent):void
                                  var arr:Array;
                                  arr = Array(event.clipboard.getData(ClipboardFormats.FILE_LIST_FORMAT));
                                  startImage.source = (arr[0] as File).url;
                ]]>
              </fx:Script>
              <s:layout>
                        <s:VerticalLayout/>
              </s:layout>
              <s:BorderContainer id="bc" borderStyle="solid" width="200" height="80%"/>
              <s:Image id="startImage" width="100%" height="100%"
                                             horizontalAlign="center" verticalAlign="middle"/>
      </s:WindowedApplication>

    Thank you answers, but it was not the answer I wanted.
    [Problem]
    * Flash Builder 4.5.1(updater) or Flash Builder 4.6
    - If you have installed on pc, does not work adobe air drag and drop
    [Solution]
    1. Reinstalling the Windows 7 (32bit).
    2. Install Flash Builder 4.5.
    3. Flash Builder 4.5.1 updater and Flash Builder 4.6 does not install.
       (Instead of using Flex SDK 4.6 is set up)
    In addition, Windows7 64bit environment does not work drag and drop.
    Is there another solution?

  • File link not working on Adobe 8.0

    Hi,
    on Adobe Acrobat 8.0 the File link does not work. For example if I have in the pdf the link: c:\daten\info.doc, I can't open this link. If it is a Weblink then it is working. The customer told me that was working in Adobe6????
    On my PC it does also not work!
    Thanks a lot!

    Hi,
    the customer uses the Adobe Acrobat 8.1.2 Standard and Acrobat Distiller 8.0 Postscript 3016102. I did print to pdf with adobe.
    I have all printscreens on a file, if you need more info!
    I did create on customers PC a new Winword document and printed ou as a pdf. Weblinks are working, File UNC File not.
    I have all Printscreens on a File, you can have it if you like (but i need Filelink or eMailadress?)
    Thanks for your help!
    Werner

  • Trace not working when create air app in flash cs6

    hi
    when i compile air app in flash cs6 , trace function dont workk and flash cs6 dispatch error with this title: test movie lunch failed, please help me

    yeah, that happened to me, is not a compilation error is a popup that says "test lunch movie failed". I usually happened when the machine is saturated memory, and does not work well until after restart 

  • Not Yet Documented ADF Sample Applications download link not working

    Steve Muench Not Yet Documented ADF Sample Applications located at http://blogs.oracle.com/smuenchadf/examples/
    The download link for the samples does not work. It directs us to Oracle JDeveloper Products Page instead.
    Clicking on the title of any sample application used to enable the download of the sample file. Now it points to http://www.oracle.com/technetwork/developer-tools/jdev/overview/index.html
    Is there an alternative way to download the sample applications?
    Thanks in advance for your help.
    Mitesh

    Unfortunately the link https://smuenchadf.samplecode.oracle.com/samples does not work. It gives message URL is not valid.
    Your samples are a very important source of reference for us. Hopefully all the samples can be migrated to the new site soon.
    I am using JDev 11.1.1.2. I am using editable checkboxes is a table with RowSelection = Single. When I click on a selectBooleanCheckbox on a different row other than the current table row, the checkbox value changes at first but immediately reverts back to the previous state. It works fine so long as I remain on current row of the table. If I turn RowSelection off then I don't face this issue.
    For information, I wanted to take a look at your sample 145. Using a CheckBox in an Editable Table with Boolean/Button Binding.
    Thank you for your help.
    Mitesh.

Maybe you are looking for

  • Computer Notification says Update when I click the Udate fails at the 40% point

    I am kind of stumped on this as it has happened quite a few times over the last 2 years and I use Adobe on my ViSalus Body By Vi 90 Day Challenge website www.flab2fabin90days.com as well as my blog http://bodybyvi90daychallengeinfo.blogspot.ca/ and o

  • GRC 10 want to extend our ruleset for use by another connector

    Hello.   We migrated our RAR ruleset from 5.3 to 10.0 and it is working for on our original connector (our SBX).  Now we would like to use that same ruleset for a new connector (our QAS).   I do not see a way to do any mass maintenance for this.  The

  • What are the Batch mode parameters for Receiver JDBC Adapter

    Hi All,          Could some pls tell me how to set bacth mode in receiver JDBC adapter and what are its parameters and how to configure them. i beleive there is something like max count parameters etc.. Regards, Xier

  • Zen V vs. USB P

    my computer keeps saying that the Zen V isn't hooked up to it but it is. The batterie's charging and it's really low, could that be it's or could it be because the USB Port isn't high speed like the cord that is linking the two is?

  • Opening downloaded executable files

    For some reason all the files I download are set to be opened by Toast. I can't seem to get this to change. I want to be able to install programs again! Help! Macbook   Mac OS X (10.4.8)