Download the pdf or jpg file and save it on the device for consultation offline

Hello

Publication of an AIR for iOS app via Flash CS5.5, anyone know if it is possible to download a pdf or jpg file and save it on the device for consultation offline?

If so, could you give me some advice on the relevant categories?

Thank you

Mark

Save the content of the loader in byte array, and then send this byte array to FileStream

Something like:

mcLoader = new URLLoader();

mcLoader.dataFormat = URLLoaderDataFormat.BINARY;

var req:URLRequest = new URLRequest (file);

mcLoader.addEventListener (Event.COMPLETE, contentLoaded);

mcLoader.load (req);

private void contentLoaded(e:Event):void {}

var dataContent:ByteArray = new ByteArray();

dataContent = e.target.data;

var fileName:String = "mylocal.pdf".

var f: File = File.applicationStorageDirectory.resolvePath (fileName);

Save the file in the local space

If (f.exists == false) {}

trace ("file does not exist. Record file');

var fs:FileStream = new FileStream();

FS. Open (f, FileMode.WRITE)

fs.writeBytes (dataContent);

FS. Close();

trace ('saved');

}

}

Tags: Adobe AIR

Similar Questions

  • InDesign file I want to simply export to a jpg file and integrate the jpg (or png) in an e-mail...

    I have an indesign file I want to simply export to a jpg file and integrate the jpg (or png) in an email... no link, just... show all copy appears fuzzy, no matter what I do... what I am doing wrong?

    I agree with you Peter.

    However, when inserting to email, certainly in the office, the format returned from any other format, that is, png or another format of JPEG file.

    I do as Peter suggests, open the PDF file in photoshop - then save to the Web but choose JPEG compression max.

    It is usually the best solution.

  • is it possible that I can download a PDF on my CCP and convert it in a powerpoint presentation or a keynote file?

    is it possible that I can download a PDF on my CCP and convert it in a powerpoint presentation or a keynote file? He won't let me convert a PDF file on my computer, in a different format/layout

    Hi abbeyc80462914,

    Please let me know the application you use to convert PDF files into powerpoint.

    If you have subscription you can easily convert the files in the Acrobat application or online here: https://cloud.acrobat.com/exportpdf. Make sure that you sign in with your Adobe under which you have membership ID.

    Kind regards

    Meenakshi

  • I'm doing a pdf to a file and I need to get the size of the file to be not more than 10 MB. What is the best way to do

    I'm doing a pdf to a file and I need to get the size of the file to be not more than 10 MB. Even when I save it, the image quality at least the file size is 10.9 MB. What is the best way to do

    Open the PDF in Acrobat Pro. Choose file > save as other > PDF of reduced size or PDF optimized (which gives you more options).

  • How to capture a .gif of a spectrum analyzer file and save the file in PC

    I want to capture a .gif from a spectrum analyzer file and save the file to the PC, but I have a problem when reading data from the instrument. I don't know how to format the string has obtained from the instrument, when I use '%s' or '%t' as string format to read the data from the instrument is truncated.

    my code are, could someone tell me where I'm wrong?

    char resultsArray [5000];

    viPrintf (hSpectrumInstr, ": MMEMTORCR ' CIMAGE.") GIF "\n"); "
    viQueryf (hSpectrumInstr, ": MMEMATA? '") CIMAGE. (' GIF'\n ', '%t', resultsArray);
    printf ("%s", resultsArray);
    GetChar ();

    as you can see your code is not readable, can you post a screenshot or, as before, a Word document?

    When you use "%b" table must be of type ViInt8

  • Windows7 won't let me edit the hosts file and save it

    Windows7 won't let me edit the hosts file and save it. What should I do to save the edited host file?

    This is a built-in security feature.  There is an easy solution.  Click onStart-> all programs-> Accessories.  Right click onNotepadand then click run as administrator.  If you are prompted for an administrator password or a confirmation, type the password, or clickallow or Yes.

    Open the Hosts file (from the notebook, that you opened), make your changes, and then click file ->Save.

    Barbara

  • How to say the script colse all files and save them, but not untitle docs

    Hello world

    I want colse open files and save them, but not the files that have never been saved.

    Try this script, but I ran after, all files are not saved.

    docs var = app.documents.
    for (var i = docs.length - 1; i > = 0; i--) {}
    if(App.activeDocument.Saved == false) {}
    docs [i]. Close (SaveOptions.no);
    }
    Another yew (docs [i] m:System.NET.Sockets.Socket.close (SaveOptions.YES));
    }

    can someone tell me what is the problem with the script?

    Thank you

    Respect of

    Teetan


    var docs = app.documents;
    for (var i = docs.length-1; i >= 0; i--) {
        if (docs[i].saved == false) {
            docs[i].close(SaveOptions.NO);
        }
        else {
            docs[i].close(SaveOptions.YES);
        }
    }
    
  • What Version of Adobe do I need power "extract" a page to an existing file and save/download another file?

    What Version of Adobe do I need power "extract" a page to an existing file and save/download another file?

    Hi fcrawford,

    You can use Acrobat Pro 11 or Std to accomplish this.

    Please visit: http://acrobatusers.com/tutorials/extracting-pages

    Kind regards

    Rave

  • After downloading the update for Yosemite 10.10.5, I got an annoying popup with a beep sound blaring that says that Safari crashed. I've forced to leave Safari, rebooted and popup returned once more. Restarted again and popup went. What was it?

    After downloading the update for Yosemite 10.10.5, I got an annoying popup with a beep sound blaring that says that Safari crashed. I've forced to leave Safari, rebooted and popup returned once more. Restarted again and popup went. What was it?

    Open Safari while holding the SHIFT key

    Try to reset the settings of Safari:

    1. open Safari

    2. click on the Safari menu at the top (to the right of the Apple logo)

    3. Select the Preferences/Privacy tab

    4. click on remove all data from the Web site

    5. close Safari.

    Remove cache Safari files:

    1. click on finder

    2. look for the menu GO to top

    3. click on GO and hold down the option key. This will show a user library folder.

    4. click library and find the Caches folder

    5. in the folder caches com.apple.Safari Ouvrezledossier

    6. move the Cache.db file Trash.

    This should solve the problem. If it does not help, try to disable the Safari extensions

    1. open Safari

    2. click on the Safari menu at the top (to the right of the Apple logo)

    3. Select Preferences

    4. find the Extensions tab

    5 disable all extensions of

    6. relaunch Safari

  • How to open an .art file and save it in another format (jpeg)?

    How to open an .art file and save it in another format (jpeg)?

    Hi michaela.

    Please refer to the below discussion,

    What is an .art file? and how can I open them offline? Yahoo Answers

    How to change an art. AOL file in a jpeg file. I tried... - Q & A

    Let us know the results.

    Kind regards

    Mohit

  • My Illustrator open with lots of? I delited it and do not wanter reinstall, but right now I can download my instal 270 MB file and there only fonts inside. How can I reinstal my Illustrator CS6?

    My Illustrator open with lots of? I delited it and do not wanter reinstall, but right now I can download my instal 270 MB file and there only fonts inside. How can I reinstal my Illustrator CS6?

    You can download CS 6 apps at the bottom of the link:

    https://helpx.Adobe.com/x-productkb/policy-pricing/CS6-product-downloads.html

    Make sure you download exact product, if you had purchased Creative Suite which includes Illustrator, you must download the full Suite.

    Or if you had bought Illustrator CS 6 alone, just download Illustrator configuration files.

  • I have a Macbook Pro. I upgraded 10.9.4 one downloaded the demo for creative cloud. It downloaded and installed, but does not open. I stopped and tried to reinstall. The same problem.

    I have a Macbook Pro. I upgraded 10.9.4 one downloaded the demo for creative cloud. It downloaded and installed, but does not open. I stopped and tried to reinstall. The same problem.

    Thank you.

    I came across the solution. In addition to download creative cloud, I needed to return to the site and download the trials for the programs I want to use - Photoshop and Lightroom. Once I did, I was in business. Save bad if this was done in light on the download site.

    Thank you

  • question about chopping up a jpg file and animating

    Hi all

    I looked around the right "expression" get a tutorial on the animation of a jpg file. I now cs6. If the tools are not the problem. I also have Toon Boom Animate 2.

    I am trying to get a few tutorials take a Jpg file and chop it upward to create pieces. So I can animate then the latter, or ' os / interpolation in Flash.

    I don't know where start, the extent of the disecting a jpg into parts I can then export and turn them into a symbol... I'm subscribed to Class On Demand, but I couldn't find a solution. Or I was not typing the exact phrase, perfect to find.

    Please those of you who know how to do this. Give me some search phrases to find a decent tutorial video (s) to look at in order to recover a jpg file, chop it into pieces. I think that this is done in PS? But what tool and what is the term used to describe this utility?

    After the peak cut into pieces, I have, I think I could then just import into my library of Flash and convert them to symbols and start the animation. I saw the Panda to Lip Sync (in the field of animation "canned") that's what I really try to do... However, I could not perfect the appropriate phrase to find a video on how to do this.  Creatiang a Lip Sync on a JPg... Some of the tutorials I wathced on Youtube have been advanced to display the steps little important to do. I had those who showed after the creation or to know first-hand how to draw symbols and then build my computer.

    If you know of a video or a tutorial to turn me, that would be appreciated.

    Thanks for any direction,

    NORTH CAROLINA

    P.S. I do not have the link to "getting started with flash" and roll a ball with a start and stop switch.

    import your JPGs to Flash > place it on the stage > when it is still selected, click on modify > bitmap > bitmap trace (experience with parameters).

    After his conversion to a vector (trace bitmap), use the lasso tool to select a part of the body you want to independently animate other parts (for example, left forearm) > right click > click on convert to symbol > select movieclip (if you use actionscrpt) or graphic (if you're going to animate using interpolation of chronology).

    continue selecting other parts of the body and conversion of symbols until the jpg everything is settled and converted.

  • Downloaded the update for Firefox, and now I can't get rid of AOL.

    Downloaded the update for Firefox, and now I can't get rid of AOL. I tried to remove anything that is related to AOL and when restart Firefox... There are once again AOL. I even reinstalled Firefox... He was there again.

    Where AOL is displayed - homepage?

    I think the first thing to check is if you have any modules related to AOL. These can replace your regular settings. You can view and disable all extensions essential or unknown here:

    Firefox orange (or the Tools menu) button > addons > Extensions category

    Note that in most cases, you should use the link to restart Firefox to actually disable the extension that you have chosen to disable.

    Then, to fix your homepage, try the procedure described in this article: How to set the home page.

    If there is a problem with your suppliers of research from Google for AOL, try this extension:

    https://addons.Mozilla.org/en-us/Firefox/addon/SearchReset/

    Any improvement?

  • I can't download the application for mac windows phone. The message: you are interested in the content is now available in the store. How can I synchronize microsoft limia and macbook?

    I can't download the application for mac windows phone. The message: you are interested in the content is now available in the store. How can I synchronize microsoft limia and macbook?

    Contact Ms and ask them.  Only they dictate where their application is made available.

Maybe you are looking for

  • Display driver for hp split x 2 13-m101se

    Hello, I recently bought the hp x 2 13-m101se split. I noticed the battery drain to be fairly high, most after upgrading 8.1 Win. Previous forums were suggestions to turn OFF bluetooth, what I did, and to download the latest drivers from HP display.

  • Satellite L655-11N - Webcam does not appear on the video chat

    Hello, recently I had a problem with my webcam on Toshiba L655-11NIt worked perfectly when I chat with my friends on Facebook, Yahoo, Skype But now I can see my friends, but they cannot see me, even the webcam does not appear on my screen even though

  • 15 - r110na: energy star

    I'm puzzled. It's any different from the normal Windows power management makes Energy Star power plan options? Seems to me they are both identical.

  • Transfer music from one clip to another

    I bought a Sansa Clip a few years ago and responsible for 1 300 + songs on it. A friend just bought the same Sansa Clip. Is it possible to transfer music from my Clip to theirs?

  • Multiple SSID with 702 (standalone)

    Hi all I'm setting up a (standalone) 702i Aironet to broadcast 2 SSID on both radio interfaces. The first (private) SSID is secuered with AES and is assigned to the 1 VLAN (VLAN native) The Second SSID (Public) is free access and assigned to VLAN 50