Delete an swf file after download

This is the situation: after a client load external content
from an http server into his flash movie, a copy of the
file for the external content (say, an SWF file) is stored
in the "Temporary Internet Files" folder.
To protect the external content, is it possible to
automatically
remove this file, after the loading is done? This should of
course be built into the client movie. Within ActionScript,
there seems to be no delete file function of any sort.
Is it possible to do it by loading a javascript or ASP page?
Any suggestions would be appreciated.

Thanks for all your answers,
which have really helped me
to put things in perspective.
Let me make the situation more
explicit. I am going to use
an empty movieClip as a container.
All the Flash codes/graphics will be
loaded dynamically into this
container during run time from
a server, with user authentication.
There are two separate issues:
(1). Whether the client would
be able to access these external
contents on the server, after
cracking the container swf.
On the server side, there
are authentication routines,
so that a user must be verified
before he could load any external
contents. I can hide all related
scripts/functions on the server
side (via FMS or http server), so
that a user does not know what I
am doing. In fact, I could copy
to-be-loaded-contents into a scratch
directory just before loading,
and then the server side script
will delete these contents
after loading. So this
part should be as safe as my
authentication method, even if a
hacker has decompiled my swf.
(2). Whether the client
would be able to get hold of
the contents on his local
machines, since these
contents are loaded into
the container movieClip. This
part I am not sure. I thought
that if the files were not saved
on the disk as temp files and
if my connection was secured/
encrypted using https,
then it would be difficult for
a client to get hold of the
content swf files. But you guys
seem to be saying that a client can
still get it somehow.

Similar Messages

  • How to delete a jar file after loading image files from it

    Hi,
    How can I delete a jar file after some image files have been loaded? For example, say, I have "a.jar" which contains an image "a.gif" in the root directory of the c drive. I would like to get the image size and then delete the jar file. Here is the code snippet:
        URL url = new URL("jar:file:/C:\\a.jar!/a.gif");
        Icon icon = new ImageIcon(url);
        System.out.println("icon size ? " + icon.getIconHeight());
        File file = new File("c:\\a.jar");
        while(file.exists())
            file.delete();
            try
                Thread.sleep(100);
            catch (InterruptedException ignored)
        System.out.println("file deleted.");I get the image size correctly but just can not delete the jar file. Apparently the file handle is not released, but how to close it? Any hint will be appreciated.
    Justin Jan

    I am sure the URLConnection.defaultUseCaches is set before it is connected otherwise I should catch an IllegalStateException on conn.setUseCaches(false).
            try
                URL url = new URL("jar:file:/C:\\a.jar!/a.gif");           
             URLConnection conn = url.openConnection();
               conn.setDefaultUseCaches(false);
             conn.setUseCaches(false);
                Icon icon = new ImageIcon(url);
                System.out.println("icon size ? " + icon.getIconHeight());
                url.openConnection().getInputStream().close();
                System.gc();
             System.runFinalization();
                File file = new File("c:\\a.jar");
                while (file.exists())
                    file.delete();
                    try
                        Thread.sleep(10);
                    catch (InterruptedException ignored)
                System.out.println("file deleted.");
            catch (Throwable t)
                t.printStackTrace();

  • Malware - Safari users - disable Open"safe" files after downloading

    For those not aware there's some malware floating around which goes by the name of MacDefender and other variants.
    It's a scam that may show a page suggesting 'virus' infection on the user's machine and/or download an installer file.
    Visiting malicious sites or apparently just browsing some Google Images searches will automatically download a zipped file.  If the Safari Preference to Open "safe" files after downloading is checked it will unzip and run the installer for the malware.
    While installing requires user intervention to click through the installation, the most recent variant will apparently install for a user without needing an administrator password.
    Once installed the malware apparently opens unsavoury websites randomly and prompts for credit card details to remove them.
    This is unpleasant scareware to steal your credit card info.
    Beware.
    AC

    just for information (in case you haven't seen these yet):
    Mac OS X 10.6 Help: What is malware?
    How to avoid or remove Mac Defender malware
    Mac Virus/Malware Info
    Identifying and removing MacDefender trojans

  • My Safari can´t open .dmg files after downloading

    I updated to Mac OS X 4.9. But since this update, Safari cannot open .dmg files after downloading! On 10.4.8 it was not a problem. What can I do?
    eMac G4 PPC   Mac OS X (10.4.9)  

    Darn...I thought that would do the trick.
    Given the other problems you mention, more and more, it seems a reinstall of the OS, using Archive and Install is going to be necessary. Have you ever done an Archive & Install of the OS? Important you carefully read the description of the process. If you are uncertain, I find the Take Control Upgrading to Tiger E-zine to be a very helpful guide.
    Once you reinstall the OS, then you can upgrade to 10.4.8 using the combo update, repairing permissions via Disk Utility in your Utilities folder when complete.
    One question: Not sure why you have run into all these problems on the 10.4.9 upgrade. It worked without problem for me. Anything unusual happen during the install?
    Message was edited by: Hawaiian_Starman

  • Safari won't open docx files after download

    The "open safe files after download" button is checked.  I unchecked it, shutdown safari, rechecked it and it still isn't working.

    How do I get that file type on the "safe to open" list?
    I'm not sure there is any way to do that, and if there is, I wouldn't recommend it, because Word files are not necessarily safe to open -- they can include harmful macros. You can try the suggestion linked below, but I haven't tested it.
    OSX 10.6 Download Assessment Safe Files

  • Unchecking  'Open "safe files after downloading' not working

    After unchecking "Open 'safe files after downloading'", files open anyway and do not download to the specified directory (Safari 2.0.4). Instead, I am forced to preview them, and have to manually save. I had this option unchecked on my Powerbook G4 (Safari 1.3.2), and it worked without problems. Any suggestions?

    I'm geussing you're using Safari as your internet browser? Try Firefox as a browser. It will allow you to view PDF documents in the browser itself, without downloading the document to your Download folder and it doesn't require Adobe to do so.

  • "Open safe files after downloading" option stopped working

    Hello,
    the safari "Open safe files after downloading" stopped working. Even when is checked, it doesn't open anything, no jpgs, no dmgs, no zips. Not sure what could've happened. I installed the new Safari 4.03 update and Speed download today. Any ideas what may be causing this problem? Thank you

    Hi Steve
    One suggestion is to create via the Finder a specific download folder for your attachments. Then in the Finder, drag the folder to the sidebar. Now in Mail, when you save the attachment, simply click on the sidebar location to facilitate the save. Then, go to the Finder, click on the sidebar folder for easy access to the attachment. Remember too, Mail attachment save feature gives you the option of directly importing any images into iPhoto.

  • Problems extracting LR5.6  upgrade files after download

    Hello!
    I've just completed installing a LR5 upgrade from a DVD.
    After this, I downloaded the latest upgrade which i this case was is LR5.6.
    My problem is that I am unable to extract the files in the upgrade.
    I just get a message from the installer telling me that there is a problem extracting some files and to check that there is enough memory on my computer. The message also suggest to check that I am authourized to use the target folder for the extraction.
    I've reinstalled LR5, I've tryed downloading a new upgradefolder several times, I've tryed extracting it in different folders.
    There is enough memory and my computer system meets the requirements. (I'am the administrator of course.)
    Anybody has a solution?
    Thanks in advance!
    Felix
    PS below is an image of the message I get when trying to extract files (in swedish though).

    Hello Jeff!
    And thanks for your answer.
    Yes i've tried extracting/installing both updates (5.5 and 5.6). The outcome was the same in both cases. Same message with 5.6 as the one in my screenshot.
    There is some information in this but I can't figure out what it is.
    Felix
    Skickat från min iPhone
    29 aug 2014 kl. 22:50 skrev Jeff A Wright <[email protected]>:
    Problems extracting LR5.6  upgrade files after download
    created by Jeff A Wright in Downloading, Installing, Setting Up - View the full discussion
    Felix2 from your screen shot it appears you are attempting to download and extract the Lightroom 5.5 update/installer.  Do you receive the same error downloading the 5.6 update at Adobe - Lightroom : For Windows : Adobe Photoshop Lightroom 5.6?  Each update contains the full installer so you do not need to have a previous version of Lightroom installed prior to installing Photoshop Lightroom 5.6.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6685604#6685604
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Downloading, Installing, Setting Up by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • I deleted Safari, it seems, after downloading Chrome a while back.  But, now I want Safari back.  How can I reload Safari to my oldish OS X?

    I deleted Safari, it seems, after downloading Chrome a while back.  But, now I want Safari back.  How can I reload Safari back to my oldish OS X?

    Download the 10.5.8 combo update http://support.apple.com/kb/DL866

  • How do I automatically delete a .ps file after creating a pdf?

    Hi all! I vaguley remember in the past that there is a preference to automatically delete a .ps file after creating a pdf. Can someone remind me of how to do this? I'm using Distiller version 9.2.0. Thank you so much!
    Julie
    PS: I'm creating the .ps file from Quark 7, if that makes a difference.

    I am unaware of any feature allowing automatic delete of .PS files.
    The adobePDF print driver which has been removed in OSX.6.x (Snow Leopard) That you choose when ina Document would go through the following steps in the background this made it slow.
    create .ps File (hidden)
    Checksum Verify the .ps File
    Open Distiller in background (hidden)
    Create Pdf
    Checksum Verify the .pdf File
    shut down Distiller in Backgroun (hidden)
    Delete .ps File (hidden)
    Pdf suddenly appears
    If at any point in this chain something dies the pdf was not made.
    Actually in prior OS to X.3.x the print driver provided for my Hp Inkjet, it was actually better to go to print menu, and choose save as  postscript, then drop the postsript file on distiller and creat the PDF. or just open the ps in Acrobat.
    with the PRint Drive provided for my HP Inkjet for X.3 it was changed to  create Postcsript file from PDF.  In the start having the PDF button on print menu. The pdf's were not as good as those created in the AdobePDF driver. But were aceptable for most purposes.

  • Unable to open existing PDF files after downloading Adobe reader

    I have an Advent 7085 PC with Windows XP Home version 2002 service pack 2. After downloading the latest Adobe Reader 8 I cannot open any of my existing PDF files, nor can I open any new ones. I have several times downloaded it, tried it and found it doesn't work so have then deleted it from the system and rebooted. Downloaded again only for the same thing to happen again. Error message says that Adobe Reader 8.1 has encountered a problem and needs to close. Then I am advised to let microsoft know of this problem.
    Please!!! Is there anybody out there who knows what the problem might be and help me resolve it?
    Thanks
    IG

    I finally called tech support and this is what we did and it worked for me...First go to start/control panel/add&remove programs. Once the program list is configured, hilite Adobe reader and select remove. Once the program is removed, from the control panel select user accounts. Set up a new user account "test". Through user "test" go into www.adobe.com and select icon to download adobe reader. You do not need to run media player, remove check unless you want to download it. After program is downloaded and copied you can close out of adobe. At that point I was able to open my PDF files without any error message. Tech advised me to keep the "test" user set up, doesn't hurt anything to have it there. He told me that there probably was some settings under my user account that was causing a glitch in the download and that is why we opted to download through a new user account. BTW the tech support was free if you still can't get it to work. Good Luck

  • Corrupt aac files after downloading from iTunes!

    Hi,
    the download manager of iTunes is bad! If downloads are interrupted and resumed later (lack of electricity supply, disruption of the Internet connection), then aac files are not valid! Such a file stops playing in the middle of the song, for example. Yesterday I checked my library (with Parallels Desktop + Win XP + foobar2000 + foo verifier) and I found 45 invalid aac files! All of these files I recently downloaded (iTunes Match matching process).
    Why iTunes don't check the file size or a checksum after downloading???

    Yes. I've had and continue to have this problem of a small number of songs getting downloaded corrupt when updatings songs via iTunes Match.
    Deleting and re-downloading from iTunes Match is the only solution I have found for the problem as I am having it: the songs ARE corrupted for me, and it's not just a metadata problem. When I open the songs in an audio editing program you can see that the audio just isn't there: the data stops before the end of the song (somewhere between 50% and 70% through the piece, usually). So copying it to another computer or re-importing it won't fix anything.
    The problem is that iTunes doesn't KNOW which of the songs I've matched-then-downloaded via iTunes Match are bad, and I won't know either until I happen to play one that skips before it ends.
    Here's the only solution I've found that will inspect these songs one at a time and list the bad ones:
    Create a Playlist of all songs you've downloaded (upgraded) via iTunes Match.
    Plug in an iPod (etc.) and wipe out whatever songs are on it already.
    In the iTunes setting for that iOS device, tell it to recompress the songs to 128k AAC as it puts the songs onto the iOS device.
    Now sync that entire Playlist to the device and wait.
    Result: all songs that cannot be down-converted by iTunes to 128k AAC (because the song data is bad) will be listed in the resulting error dialog.
    Here's the total suck part: iTunes doesn't let you save that list of errors off to a text file. You have to do one or more screen captures and save off the list, then manually go find those songs, delete them and re-download them from iTunes Match. Total PIA but it's the best I have come up with, since I can find no other utility or means to batch-check that these files are valid.

  • Invalid File after Downloading from Database using JSP/JDev 10.1.2

    Hi, i got a problem when i download a file from my blobColumn in database.
    Well, actually i got no problem in reading the file out of database, but when i download this file, there are 3 more bytes then in the original one in Database...
    Here's my java-code in the jsp-page i used as "save as" field:
    Hashtable ht = Dokument.createDOK(request);
    String dateiname = (String)ht.get("Dateiname");
    byte[] fileBytes = (byte[])ht.get("Dokument");
    ByteArrayOutputStream ba = new ByteArrayOutputStream();
    ba.write(fileBytes);
    // RESPONSE
    response.setContentType("application/octet-stream");
    response.setHeader("Content-Disposition","attachment; filename=\"" + dateiname + "\"");
    // DOWNLOAD
    OutputStream outs = response.getOutputStream();
    ba.writeTo(outs);
    outs.flush();
    outs.close();
    }catch(Exception ex){
    ex.printStackTrace();
    for testing i used a simple text file with 28bytes:
    begin----
    Test Zeile 1.
    Test Zeile 2.
    end-------
    after downloading this file it looks like:
    begin----
    Test Zeile 1.
    Test Zeile 2.
    end-------
    There are 3 bytes 0A(hex) at the beginning...
    I dont know why.
    after closing "outs" i made system.out for checking the amount of bytes in "fileBytes"-Array, and it was correct, just the 28 bytes like in the file from the Database.
    But i actually dont get, why there are 3 more bytes at the beginning after downloading it.
    The main problem is, some other files like word or excel documents cannt be opened, because of this 3 bytes at the beginning, and they seem to be invalid.
    Would be glad if someone can help me, got really stuck and have no idea any more.
    Thanks
    Sebastian

    Dont someone has a solution, or got a similar problem ?
    Thought about it could be a bug in the basic java classes of JDev 10.1.2
    but i dont really know...
    Have no idea left.
    Sebastian

  • How to link to file after download?

    Hi,
    I'm probably missing something real obvious here.  But, I have a button that users use to download a file from the server.  They click the button then it pops up a file dialog asking them where they want to save it, what to name it, etc.
    That all works fine. But after the file is downloaded, they have to go into Windows Explorer to find the file they just downloaded in order to open it.  How do I give similar functionality to a regular browser download where it gives a link to the file they just downloaded, then they can just click that link it and it launches the file in the associated application?  Make sense?
    Thanks!

    Hi,
    Don't take this the wrong way (I mean to be helpful here), but -
    1) You mentioned this is for a bank, so presumably this file contains potentially confidential data.
    2) Someone inside your organisation should really understand the format of this file (rather than giving it to me to understand).
    3) Sure I can look at it, but that would fall under my category of 'consultancy work' (I do provide lots of free help in these forums, but I also need to draw the line somewhere!).
    If you don't feel comfortable examining the file yourself, is there no-one else on your development team who would be able to take a look at it?
    John.

  • New versions of swf files wont download automatically?!

    Let's say I have a main swf file. If I edit that and upload,
    chances are good that it will be re-downloaded on my client's
    browsers when they refresh. However, if that swf then loads a swf
    using "loadMovie()" that has been edited and uploaded, the browser
    (safari 2.03 / Firefox 1.5 on Mac or pc) will not go and get the
    latest version. It will display the cached swf file?!?! I have
    "<meta HTTP-EQUIV="Expires" CONTENT="Mon, 04 Dec 1999 21:29:02
    GMT">" on all of the html pages to (I thought) force the browser
    to redownload all content, including all swf files.
    What can I do to ensure that external swf's loaded with
    "loadMovie()" get pulled from the server when they have been
    edited??
    This has been a thorn in my side for a while now. It doesn't
    happen all the time, but enough where it is extremely frustrating
    and embarrasing to try and explain to the client. I am using Flash
    Pro 2004 and am using "loadMovie("
    http://domain/path_to_swf",
    "_root.mc")" to load the external swf file.
    Thanks in advance!

    Interesting.  Could it be happening because I don't have the Flash Player installed on my Mac?  (Hadn't gotten around to that yet since buying this Mac, and wanted to research a bit first to understand this whole Apple vs. Flash issue...)
    So could it be that since I don't have Flash Player installed, a misconfigured web server is downloading the .swf file to my mac directly?
    Sorry if these are all stupid questions; I feel a bit stupid being so new to the Mac world.  But could this also be related to the news today of this flashback trojan?

Maybe you are looking for

  • BAPI_ACC_DOCUMENT_POST for Clearing (F-30)

    How can we use BAPI_ACC_DOCUMENT_POST for Account posting with Clearing(F-30). I am able to do it for normal GL postings(FB01).I want to use this BAPI for clearing the Open items for a given customer... Thanks Rajesh

  • Cannot fax 1 800 / 888 / toll free numbers from overseas

    Dear HP, I'm writing because using your fax machine from Germany (or Europe in general) for doing work with US firms is almost impossible. Since the US has had many fax numbers move from traditional area codes to 800 or 888 (free numbers) I am often

  • I backed up with an external drive, but it only backed up part, do I erase the complete back up and start again?

    My system is OS 10.8.5 Memory  4 GB 1333 MHz DDR3, storage available 375 GB out of 500 GB. Yesterday I tried to back up with the Seagate Backup Plus Drive with 1.5 TB using the Time Machine. The backup started, said it would take 3 hours, but ended a

  • Client keeps loosing connection

    Our office have a client/computer dedicated to streaming internetradio, and that is all it does. But for some reason, the client have alot of fall outs. We have 1 WLC 2504 and 2 AIR-LAP1041N-E-K9 (image 7.4.110.0) The debug for the client (00:22:fa:b

  • Quicktime 10.1 fps setting

    Is there any way to change a default setting on the fps that QT uses for recording? I'm running a 2.8 GHz core i7 with 8 GB RAM and it seems silly that I can barely muster 15 fps on screen recordings.