Error #3003 : can't remove a file into ApplicationStorageDirectory

I have coded a process on image file wich is working with adl (FlashBuilder debugger) but it never works in emulator (an Android release APK), although I adapted it correctly, I think, from an AIR plateform version. The good thing is that I can pick an image to application into the two plateforms !
Bad thing is I can't delete the file in applicationStorageDirectory on Android version.
Two questions : In first, I'm not sure to have writing and removing file permission, I seems to be ok ?
Secondly, did I use the right method to delete a file located into applicationStorageDirectory ?
I can be In first I get the physical image to fileSystem with method :
myImgFile.browseForOpen("title", [imagesFilter])
on adl. Secondary I got physical image with all the specific events of CameraRoll class, and the
myCameraRoll.browseForImage()
interactive method on my Android packaging for testing version.
protected function onAjouterFichierPhoto(event:CollectionEvent=null):void{
    var myImg:Image = new Image();
    myImg.source = event.currentTarget[0].nom; // Utilisation de acResultatFichierImg.nom
    var strImgSource:String = myImg.source.toString().substr(13);
    try{
        var myFile:File = File.applicationStorageDirectory.resolvePath(strImgSource1.substr(13));
        myFile.deleteFile();
        if(myFile.exists == false)
            trace("Fichier supprimé du storageDirectory !");
    catch(e:Error){
        trace("Photos->viewAjouterImage->Erreur #"+e.errorID+" : "+e.message+"\n");
I received error #3003 "File or directory does not exist", does anybody know the reason of this wrong return ?
NB : To be more precise, If I see the return of the variable strImgSource, I can see that : "storage:[photoName]" !

I'm sure that the file exists, but I don't understand the response !

Similar Messages

  • Had to uninstall Firefox, now I can't reinstall. Get error message "Can not find archive file." Please help!

    I believe I had some kind of virus attack. I got everything cleaned up. (I HOPE) In the process of cleaning the virus, I unintalled Firefox because it wouldn't open. Kept getting the error message that Firefox was already open and I had to close out of the sessions or restart the computer. After restarting the computer several times and not being able to find any open sessions in task manager, I uninstalled. When trying to reinstall, I get the error message "can not find archive file." I've tried downloading Firefox from cnet as well as the Mozilla site to no avail. Please help. I'm getting tired of using Chrome already!

    Hello,
    Certain Firefox problems can be solved by performing a ''Clean reinstall''. This means you remove Firefox program files and then reinstall Firefox. Please follow these steps:
    '''Note:''' You might want to print these steps or view them in another browser.
    #Download the latest Desktop version of Firefox from http://www.mozilla.org and save the setup file to your computer.
    #After the download finishes, close all Firefox windows (click Exit from the Firefox or File menu).
    #Delete the Firefox installation folder, which is located in one of these locations, by default:
    #*'''Windows:'''
    #**C:\Program Files\Mozilla Firefox
    #**C:\Program Files (x86)\Mozilla Firefox
    #*'''Mac:''' Delete Firefox from the Applications folder.
    #*'''Linux:''' If you installed Firefox with the distro-based package manager, you should use the same way to uninstall it - see [[Installing Firefox on Linux]]. If you downloaded and installed the binary package from the [http://www.mozilla.org/firefox#desktop Firefox download page], simply remove the folder ''firefox'' in your home directory.
    #Now, go ahead and reinstall Firefox:
    ##Double-click the downloaded installation file and go through the steps of the installation wizard.
    ##Once the wizard is finished, choose to directly open Firefox after clicking the Finish button.
    Please report back to see if this helped you!
    Thank you.

  • Can we strore .CSV file into CLOB datatype

    hi
    can we strore .CSV file into CLOB datatype
    its giving me error ot hexa coonversion?
    can anyone provide sample code...
    when i m sending mail from oracle database when i send as blob object then nope but when i send attachment stored in table with clob column it gives me hex to raw conversion error
    folllowing is my code--
    CREATE OR REPLACE PROCEDURE com_maildata_prc1( pi_sender IN com_batch_contact_dtl.strreceivername%TYPE,
    pi_recipients IN com_batch_contact_dtl.stremailaddr%TYPE,
    pi_subject IN VARCHAR2 ,
    pi_text IN VARCHAR2 ,
    pi_filename IN VARCHAR2 ,
    pi_blob IN cLOB
    IS
    conn utl_smtp.connection;
    i NUMBER;
    len NUMBER;
    BEGIN
    ('com_send_email_prc',Vn_Process_Id);
    conn := demo_mail.begin_mail( sender => pi_sender,
    recipients => pi_recipients,
    subject => pi_subject,
    mime_type => demo_mail.MULTIPART_MIME_TYPE
    demo_mail.begin_attachment(conn => conn,
    mime_type => 'application/csv',
    inline => TRUE,
    filename => pi_filename,
    transfer_enc => 'base64'
    -- split the Base64 encoded attachment into multiple lines
    i := 1;
    len := DBMS_LOB.getLength(pi_blob);
    WHILE (i < len) LOOP
    IF(i + demo_mail.MAX_BASE64_LINE_WIDTH < len)THEN
    UTL_SMTP.Write_raw_Data (conn
    , UTL_ENCODE.Base64_Encode(
    DBMS_LOB.Substr(pi_blob, demo_mail.MAX_BASE64_LINE_WIDTH, i)));
    ELSE
    UTL_SMTP.Write_raw_Data (conn
    , UTL_ENCODE.Base64_Encode(
    DBMS_LOB.Substr(pi_blob, (len - i)+1, i)));
    END IF;
    UTL_SMTP.Write_Data(conn, UTL_TCP.CRLF);
    i := i + demo_mail.MAX_BASE64_LINE_WIDTH;
    END LOOP;
    demo_mail.end_attachment(conn => conn);
    demo_mail.attach_text(
    conn => conn,
    data => pi_text,
    mime_type => 'text/csv');
    demo_mail.end_mail( conn => conn );
    END;
    Thanx in advance...
    Message was edited by:
    user549162
    Message was edited by:
    user549162

    Hi
    Ignore "SQL*Loader-292: ROWS parameter ignored when an XML, LOB or VARRAY column is loaded" error
    after importing your csv file just change length CHAR(100000).
    ex: your column col1 CHAR(1000) to change CHAR(100000).
    and deploy your mapping and execute
    Regards,
    Venkat

  • In new Numbers, can you export a file into excel format?

    In new Numbers, can you export a file into excel format? Or is this something else thats been removed!!??
    HELP!!

    Hi AMGracie,
    In Numbers 3.0 on a MacBook Pro running OS X 10.9
    Regards,
    Ian.

  • How can I remove a file on server w/ my JSP app running on Tomcat 7 ?

    First of all, I'm posting here because I found it the closest to java web development in the forums listing.
    How can I remove a file on the server side with my JSP app running on Tomcat 7 ? I did it in a JSE app by changing permissions, but how can I do it for a simple JSP app ?
    My code is
    public static void excluirArquivos(String nomeArquivoExcluido) {
              File arquivoExcluido = new File (nomeArquivoExcluido);
              arquivoExcluido.setWritable(true, true);
              SecurityManager sm = new SecurityManager();
              try {
                   sm.checkDelete(arquivoExcluido.getAbsolutePath());
                   System.gc();
                   if (arquivoExcluido.delete()) System.out.println("File '" + nomeArquivoExcluido + "' successfully removed.");
                   else System.out.println("File '" + nomeArquivoExcluido + "' wasn't removed somehow.");
              } catch (SecurityException se) {
                   System.out.println("File '" + nomeArquivoExcluido + "' can't be excluded. There is no permissions.");
         }And it always falls on the catch statement.

    899238 wrote:
    How can I remove a file on the server side with my JSP app running on Tomcat 7 ? I did it in a JSE app by changing permissions, but how can I do it for a simple JSP app ?1. make sure that the JVM has the (filesystem) rights to be able to remove said file
    2. make sure the file is in fact not locked (for example, opened by another process)
    3. use File.delete()
    There is no guarantee that you can delete a file, you can only make an attempt. There can be any number of reasons, most if not all of them not related to code, that the deletion of a file does not work.

  • Getting error when try to upload xml file into Data Template

    Hi,
    Getting error when try to upload xml file into Data Template.error:"The uploaded file XXSLARPT.xml is invalid. The file should be in XML-DATA-TEMPLATE format."Plz anybody help me.
    Thanks,
    Prasad.

    Hi,
    Anybody Help Plzzzzzz.
    thx,
    Prasad

  • WLAN driver fails to install on G580 Windows 7 x64 with error "BCM4313: Can not find setup file"

    Summary:
    I have installed Windows 7 Ultimate x64 on my G580.  Everything is working fine except the WLAN driver fails to install with the error "BCM4313: Can not find setup file".
    Details:
    I bought lenovo G580 with Windows 8.  Since my parents are not comfortable with the learning curve of Win 8, I successfully downgraded to Windows 7 Ultimate x64.  Everything is working fine but my WLAN card is not recognized because of lack of driver.
    The lenovo parts look-up page says I have broadcom WLAN card - CBT BCM4313 MOW HMC WLAN
    I looked at lenovo driver downloads site and tried following driver files for Windows 7 and both of them failed to install with the following error.  I tried installing other WLAN drivers also but they won't even install as required hardward is not there.
    Error -  "BCM4313: Can not find setup file"
    Drivers Tried:
    - http://support.lenovo.com/en_US/downloads/detail.p​age?DocID=DS028105
    - http://support.lenovo.com/en_US/downloads/detail.p​age?DocID=DS028208
    Any help about how to get past this error will be appreciated.  The previous Widnows verison (Windows 8) is still on my hard-drive as windows.old folder.  Let me know if I can copy a specific file from there.
    Thank you.
    BJS
    Solved!
    Go to Solution.

    Download this driver bcm4313
    Start setup and extract the files.After that go to star menu/control panel/system/device manager.There you probably find out that network adapter driver is missing.Choose it and click with right mb for drop menu to show up.Select properties then Driver/Update Drivers...Select to load driver from computer hard drive and choose the path where extract files is.Default path is main partion C: and search for directory named Driver.
    And yes...you get "Can not find setup file" error but dont worry.Files needed to instal driver are extract fine.

  • I shot video on a Panasonic P2 and I'm trying to import the MXF files to Final Cut Pro but when I try to import, the only thing that imports is a blurry image of each clip. There's no audio and no video...how can I import MXF files into Final Cut Pro?

    I shot video on a Panasonic P2 and I'm trying to import the MXF files to Final Cut Pro but when I try to import, the only thing that imports is a blurry image of each clip. There's no audio and no video...how can I import MXF files into Final Cut Pro?

    at the end, you say "import preferences", which program are you describing?
    So im safer using footage that is remotely being pulled from iphoto...
    vs
    using footage that is imported into FCP from imovie?
    Is there anything i can do in fcp to make this footage more reliable or safer or more stable as i pull remotely from iphoto?
    All the footage, and all the libraries to all programs, or on a new pegasus 12tb raid 5 setup fyi.

  • How can i remove secure files from the trash? I tried click away the secure notification in info, but still i cann't remove them. Is there a buttoncombination to use?

    How can i remove secure files from the trash? I tried click away the secure notification in info, but still i cann't remove them. Is there a buttoncombination to use?

    If you are unable to empty the trash, try holding the Option key while selecting Empty Trash.
    Otherwise, some steps in the following link may help you.
    http://support.apple.com/kb/ht1526

  • When moving a file using drag and drop, as I hover over the destination folder it no longer opens, so I can't drop the file into the folder.  Why?

    When moving a file using drag and drop, as I hover over the destination folder it no longer opens, so I can't drop the file into the folder.  Why?  I have a heirarchical embedded folder structure under \Documents.  Usually, as I drag the file to be moved over the various folders, they will blink twice, then expand/open to reveal contents (in Finder).  Now, when the file to be moved is held (hovering) over the destination folder, it will not blink or expand, so there's no place to drop the file.  If I release the mouse button, the file image disappears, showing that it is "going back to the place it came from", a.k.a. was not moved.  This just started happening.  I noticed it after upgrading to Mavericks.  Is this a bug or could anything else be causing this?

    As of today, Apple Support discovered during a remote support session with me that the same thing happens on their own system.  It is isolated to "Column View"; the Icon and List views in Finder behave correctly.  Issue is being escalated to engineering, and Apple will call to report status in a couple days.  In all likelihood, this is a bug that will need to be addressed in a future update.

  • Can I import html files into Buzzword?

    Can I import html files into Buzzword?

    Thank you for your post.
    Buzzword lets you import Microsoft Word (DOC, DOCX), plain text (TXT), Rich Text Format (RTF), Word 2003 XML, and Open Document Format (.odt) files. (Font substitution and other formatting changes sometimes occur on import, depending on the content of the document.) You'll need to convert your HTML file to one of the supported file types before importing to Buzzword.
    Kind Regards,
    Michelle

  • Can't import prores files into Premiere Pro CC or SpeedGrade CC

    Can't import prores files into Premiere Pro CC or SpeedGrade CC. But I can into After Effects CC.
    I also can't export to DNxHD files to an MXF file either.
    I do have latest Quicktime Pro installed and I also have Avid Media Composer and the other pieces of the Avid package.
    Conflict?

    I only have one account on the computer and it has Administrator priveleges.  What I am doing to make it work is opening the application using the "Run as Administrator" command (e.g., right click application shortcut on desktop, choose "Run as Administrator").  I am not a Windows guru but I would guess there is something different between opening an Application with a user that has Administrator priveleges and opening an Application choosing "Run as Administrator".  Also, your answer still does not address the fact that I can't use my jog wheel.
    Anyone else have some ideas?

  • I can't import raw files into lightroom

    I have been using lightroom 4. I shoot with a nikon d300s. I recently used a nikon D610 and now it says preview not available. It also says the the raw images aren't able to import. So I recently upgraded to Lightroom 5 and it still says preview not available. I need some suggestions on how to import them.

    I don't use nikon software.  I just use lightroom. I just got lightroom 5. I tried to update to 5.3 but couldn't find the location where to find it.
    Sent from Yahoo Mail on Android
    From:"dj_paige" <[email protected]>
    Date:Thu, Apr 23, 2015 at 10:22 AM
    Subject:[Photoshop Lightroom] I can't import raw files into lightroom
    I can't import raw files into lightroom
    created by dj_paige in Photoshop Lightroom - View the full discussion
    Do you have Lightroom 5.3 or higher?
    Did you use Nikon software at any point on these photos?
    If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7470470#7470470 and clicking ‘Correct’ below the answer
    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:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7470470#7470470
    To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"      
    Start a new discussion in Photoshop Lightroom by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • How can I sync text files into iPhone?

    How can I sync text files into iPhone? like doc. txt. for reading or editing

    The native iPhone OS doesn't allow that. I think there are several solutions to this, some of which may be against the AT&T or Apple rules. One legitimate solution is The Missing Sync for iPhone by mark/space (http://www.markspace.com).
    Before I had an iPhone, I owned a copy of The Missing Sync for Windows Mobile. It was a pretty decent app. In my opinion, though, their app for the iPhone is NOT worth the price ($40 new, $25 for a cross-grade).
    Also, check the App Store (if you have 2.0 software)--there may be an app that does this, probably for a lot less $.

  • Can you import Dreamweaver files into Muse, how?

    Can you import Dreamweaver files into Muse, how?

    If the images aren't showing up in DW, why do you think they will show in Muse?  Obviously, something is wrong with the paths to those images.  And that will most likely be due to the underlying code.
    Can you post an example of a problem page?
    Nancy O.

Maybe you are looking for