Cannot add image file to the current folder

2 days ago my Qde always ok, but now I can copy images on the active folded. but my application cannot recognize that images and return

Invalid asset ...
Image not found ...

error. I think that my qde had some problem. Anyone have idea?

work on 10.0, 10.1, 10.2 or switch force and back?

your assets.index is maybe corrupted

Try this:

Quit Momentics

go into your file system project and delete assets/.assets.index

reopen Momentics

do a refresh

and clean up the project

Tags: BlackBerry Developers

Similar Questions

  • How to write image files in the current folder in the Release version

    I'm able to do in the sims and on real devices in debug mode, but for some reason when I'm building a Release version I can not write in the current folder. I get write errors.

    I want to write the image easily in qml files in this folder as read when I write in the current folder.

    Write to the data directory instead - unable to write to the application folder & active

  • Cannot add a file in the folder

    Original title: file photo

    Hey, im not able to customize my films containing records. I want to add a file to display on folder icon concernd nd file is SM in the same folder. I HAV tryd method of database properties > customize. Click on file. It never works. so I found a difrnt, aftr doin of previous steps method I had to copy everything random file in folder nd delte concernd thn the file appears in the form of image folder. but nw aftr a few weeks all files r back to default... cannot redo of any process new nd

    Hi Sameer,

    The problem may occur if the folder settings were corrupted.

    Run the Fixit and check if the working folder customizations.

    http://support.Microsoft.com/mats/windows_file_and_folder_diag

    Answer please if you have any questions.

  • Where the photos are normally stored on a Mac computer? In the folder images in the Finder on my Mac, I see a file called "Library.photoslibrary Photos" i.e. 28.52 GB but I also have about 160 other image files in the same folder. But in pictures,.

    Where the photos are normally stored on a Mac computer? In the folder images in the Finder on my Mac, I have a file named "Library.photoslibrary Photos" i.e. 28.52 gb and another folder called 'iPhoto Library.migratedphotolibrary' i.e. 4.95 GB, but then I have also on the 160 other photo and video files in the same folder. But in my Photos app, it says that I have 6 260 'elements '.

    The pictures that you have imported into the photo library are, by default, stored inside the package (not file) "Library.photoslibrary Photos" in your pictures folder. The 'iPhoto Library.migratedphotolibrary' package would contain photos that have been stored in your library, iPhoto at the time of the migration.

    The other files in the pictures folder are that: other files. Also, they can be in libraries if you imported and has not deleted the copies lying around in the images.

  • CANNOT write to files in the shared folder of XP on a PC running windows 7 - but good vice versa

    I have a laptop under Windows 7 (SP1) and a desktop running XP (SP3).  I have connected both via a wireless network. While I can see and access shared files/folders from one computer to the other computer, I can only read/write files in the shared folder on the portable computer that is running Windows 7.

    If I try and change a file in the shared folder from the PC under XP on my laptop, I get the message "this file is set to read-only. Try again with a different name "."  I know that the file is NOT checked for read-only. When I change the name of the file I get the error message "\\Desktop\SharedDocs\filename.doc you are not allowed to save in this location. Contact the administrator for approval.  You want to save in the folder my documents instead? "If I save the file to another location on the laptop under Win7 it save then OK.  I can not just save a modified version of the file in the same shared folder from desktop running XP.
    It seems that it must be something to do with permissions and access to the parameters of the desktop running XP but I can not find these. Fairly easy to find in Windows 7.
    Finally, I don't have a login/password set for the connection to the computer to Office XP.  I don't have a user name and password for the laptop Win7 but you have turned off password protected sharing.
    Anyone have a solution to this?
    Thank you

    OK - the problem is now resolved.

    I noticed that the read-only for the shared folder has been checked. When I unchecked it and also checked the box "allow network users to change my files" in the shared folder properties/sharing, I was able to modify and save files in the shared folder on my laptop.
    It's a little weird because I thought I had done this the other day where the results have been less successful.  Strange.
    Thanks for your help.

  • Copy the file to the current folder using QFile

    Hi, I'm not too familiar with C++ and how bb10 manages the file system, and I'm trying to save the phone for assets app folder

    I've searched the forums and this is what I have so far

    QFile::copy(QDir::currentPath() + fromPath, QDir::currentPath() + toPath);
    

    where fromPath is the selectedFile from the picture picker (/ accounts/1000/shared/camera/IMG_00000151.png) and toPath is the path that I've specified (/ app/native/assets/pictures/IMG_00000151.png)

    The problem is, QDir::currentPath() is back - /accounts/1000/appdata/com.example.TestApp.testDev_ple_TestApp96d891e_

    Thus, the copy of the path becomes

    /Accounts/1000/APPDATA/com.example.TestApp.testDev_ple_TestApp96d891e_/accounts/1000/shared/camera/IMG_00000151.PNG

    So I modified the fromPath to remove ' / accounts/1000 "so that the copy of the path becomes

    /Accounts/1000/APPDATA/com.example.TestApp.testDev_ple_TestApp96d891e_/shared/camera/IMG_00000151.PNG

    But it does not save yet. My question is, what should the copy of the path and fromPath look like?

    Sorry for this noobish question.

    I didn't notice you are trying to copy the current file. Assets folder is read-only (at least on the device Simulator it is possible to write in it). Use data / folder instead, it is read-write, but is deleted if the application is uninstalled.

  • Cannot drag the files from the current folder to bin

    I have the trial version; 8.1 - Mac OS x 10.9.5

    I'm on the second video of the tutorial. I can't all files - jpg or mp4 - drag to the folder of images or images.

    This is very simple and minimum prevents me from going forward in the tutorial - disappointing.

    Thank you all for help.

    Mystery solved, at least in part. On line dotted pointing to the folder, the magnifying glass icon indicates that it is a 'research bin'. This type of location has been added in version 20141 (October 2014). Search locations show only the project items corresponding to your search criteria - things like a string of letters in the name, the type of assets or metadata as cadence. Since these special bins are filled in by the program based on the search criteria, so you can manually add anything whatsoever to such a location. To learn more about the search locations, please visit this page for help: Help for Adobe Premiere Pro | Find assets

    The remaining part of the mystery is where these ferries two search has come. But for your immediate needs than theoretical. It seems that what you need right now is a new tray of Stills, that you can create by clicking on the button new bin in the lower right corner of the project Panel.

  • Cannot add MP3 files to the slideshow.

    Error when try to add MP3s. Not a file valid music. Is a firewall issue or is broken LR or what? Still on trial, but need this function run before you buy.

    Hi wjohnp,

    Could you please confirm the operating system work?

    Kind regards

    Tanuj Sandal

  • [Help me] Save the file to the current folder to mediacard


    Solved!

    ApplicatuinUI.cpp

    void ApplicationUI::SaveFile(const QString normalString) {
        QString from = QDir::currentPath() + "/app/native/assets/sounds/" + normalString + ".ogg";
                QDir(QDir::currentPath() + "/shared/music/").mkdir("Doctor Who");
                QString to = QDir::currentPath() + "/shared/music/Doctor Who/" + normalString + ".ogg";
                QFile::copy(from, to);
    }
    

    ApplicatuinUI.hpp

        Q_INVOKABLE void SaveFile(const QString normalString);
    

    Main.QML

    _App.SaveFile(soundfile.text)
    
  • Cannot create a .db file in the assets folder

    I am trying to create a quizz.db file in the current folder by creating first a temporary quizz.db in the folder data and then creating tables inside and then copy it in the current folder. By debugging code, it shows that the folder is created. But I can't find it in the current folder. Here is the code

    #include 
    #include 
    #include 
    #include 
    
    using namespace bb::cascades;
    using namespace bb::data;
    
    SQLTest::SQLTest(bb::cascades::Application *app): QObject(app)
    {
        const QString fileName = QString("quizz.db");
        QString dataFolder = QDir::homePath();
        QString newFileName = dataFolder + "/" + fileName;
        QTemporaryFile file(newFileName);
    
        // Open the file that was created
        if (file.open())
        {
            // Create an SqlDataAccess object
            SqlDataAccess sda(newFileName);
    
            // Create a table called Employee in the database file
            sda.execute("CREATE TABLE Employee( firstName VARCHAR(50),lastName VARCHAR(50), salary INT);");
    
            // Insert employee records into the table
            sda.execute("INSERT INTO Employee (firstName, lastName, salary) VALUES (\"Mike\", \"Chepesky\", 42000);");
            sda.execute("INSERT INTO Employee (firstName, lastName, salary) VALUES (\"Westlee\", \"Barichak\", 55000);");
            sda.execute("INSERT INTO Employee (firstName, lastName, salary) VALUES (\"Ian\", \"Dundas\", 47000);");
            if(sda.hasError())
            {
    
            }
            else
                copyFileToAssetsFolder("quizz.db");
        }
    }
    void SQLTest::copyFileToAssetsFolder(const QString fileName)
    {
        QString appFolder(QDir::homePath());
        appFolder.chop(4);
        QString originalFileName = appFolder + "app/native/assets/" + fileName;
        QFile newFile(originalFileName);
    // If I enable this `if` condition the code satisfies it and removes the quizz.db file and then it satisfies the next `if` condition and successfully copies the quizz.db file from `data` folder to `assets` folder.
        /*if(newFile.exists())
            QDir().remove(originalFileName);*/
        // this `if` condition is not satisfied. Which should mean the quizz.db file has been created on assets folder.
        if (!newFile.exists())
        {
            // If the file is not already in the assets folder, we copy it from the
            // data folder (read and write) to the assets folder (read only).
    
            QString dataFolder = QDir::homePath();
            QString newFileName = dataFolder + "/" + fileName;
            QFile originalFile(newFileName);
    
            if (originalFile.exists())
            {
                // Create sub folders if any creates the SQL folder for a file path like e.g. sql/quotesdb
                QFileInfo fileInfo(originalFileName);
                QDir().mkpath (fileInfo.dir().path());
    
                if(!originalFile.copy(originalFileName)) {
                    qDebug() << "Failed to copy file to path: " << originalFileName;
                }
            } else {
                qDebug() << "Failed to copy file data base file does not exists.";
            }
        }
    
       // mSourceInDataFolder = newFileName;
    }
    

    If activate the commented "If" condition of "copyFileToAssetsFolder" int he removes already created quizz.db file in the current folder (that Im unable to find) and goes inside the next ' if' and copy the quizz.db created on the folder "data" of active fodler. But in any case I don't find the quizz.db in the current folder. I really need help with this quickly. Thank you.

    Thanks to read this to learn why you can have an application change the assets folder: https://developer.blackberry.com/native/documentation/bb10/com.qnx.doc.native_sdk.devguide/com.qnx.d...

  • Cannot add .article files...

    Anyone else having issues now? We cannot add .article files in the DPS portal. Everything is 'frozen' now.

    Help

    With the exception of a few posts here on the forum, we have no indication, it is a widespread problem.

    I tested a few times in the last two days and it never failed.

    If you try to download an HTML article, you can call the assistance of the company with the source files, it's probably the best way to replicate and to investigate.

  • Save a file opened under PSD in the current folder without prompting?

    I'm trying to find a way to save an open file as a PSD (from JPG) in the current folder without me.  It seems that it should be so simple.  I use CC 2014.  Using the Image Processor would work, but it creates a new PSD file.  (I tried to modify the imageprocessor.jsx to remove the path, but it did not... maybe because I tried to run the jsx to my office instead of the script folder?  I don't have access to modify the original unfortunately.)

    So yes, just trying to make an action that does stuff and then record it without requiring any interaction.   The closest thing I've found is this script that does everything I want EXCEPT the active document remains a jpg instead of becoming the new DSP.  so I end up having to save anyway and the open the PSD again to continue editing.

    Save the copy under PSD

    var doc = app.activeDocument;

    var Path = doc.path;

    var Name = doc.name.replace (/ \.) [ ^\.] +$/, '');

    Var suffix = "-copy";

    var saveFile = file (path + "/" + Name + ".psd");

    SavePSD (saveFile, 8);

    function SavePSD (saveFile) {}

    psdSaveOptions = new PhotoshopSaveOptions();

    psdSaveOptions.embedColorProfile = true;

    psdSaveOptions.alphaChannels = true;

    activeDocument.saveAs (saveFile, psdSaveOptions, true,

    Extension.LOWERCASE);

    }

    Thank you!

    Change

    activeDocument.saveAs (saveFile, psdSaveOptions, true, Extension.LOWERCASE);

    TO

    activeDocument.saveAs (saveFile, psdSaveOptions, false, Extension.LOWERCASE);

  • Error message when you try to download Windows Defender: "first remove Microsoft Client Protection." Cannot find this file through the Add/Remove, search, including hidden or Win Explorer.

    Original title: trying to download

    WinXP SP3, Security Scan run and d/ld: error message when you try to download Windows Defender: "first remove Microsoft Client Protection." Cannot find this file through the Add/Remove, search, including hidden or Win Explorer. What to do now would be much appreciated.

    Also have a related problem about MS Maliciouws software removal tool. For download, but read in the KB that: in XP, the vacuum cleaner will remove the malware, but doing so may trigger the File Protection Win with damages to my operating system.  the tool will attempt to repair the damage, but to rehabilitate prior to infection, that I need to insert the CD of Win. As my computer came with Windows preinstalled, I do not have a disk and will not take the risk of damage, that I can't fix. Do I not download or not... ? Another solution... ?  I also fear that this tool could settle into the routine Win Update and need guidance on the prevention of this facility, if possible, or what to do if it cannot be prevented.

    It can have nothing to do with any of the foregoing. " I'm relaying only because it occurred during the same mission of update: had msg of error that Win Firewall has not been set as a default, which reset, but found this hidden file when searching for the Protection of the customer: "Win 32/Hackdef' - it was a config with the extension ini file and was deleted by Scan."

    Thanks a lot for any assistance.

    scate 39

    Hello

    ·         You have Microsoft Security Essentials on your computer?

    If you have windows installed on your computer security essentials, then you will not be able to install Windows defender. Windows Security Essentials has antispyware component installed.

    You get the error because you have installed MS Security Essentials, which has its own function to antimalware. You don't need or want to install Windows Defender, too. Leave MS Security Essentials installed and do not turn it off.

    See also:

    You can turn on or turn on the firewall in Windows XP, please see the link below:

    http://support.Microsoft.com/kb/283673

  • When you copy a file in the same folder, is it possible to choose where "copy of" add original file name?

    When you copy a file in the same folder, is it possible to choose where "copy of" add original file name?

    Someone has an idea?

    No, it is not possible.

  • The initial launch of DW CC 2014, get following error: "cannot locate the resource file in the Configuration folder. This file is Spectialized to run Dreamweaver. Please reinstall the application. "This app has been updated through CC.

    I have to first remove the DW? With the help of PC Win 7.

    The error message: "Unable to locate the resource file in the Configuration folder", so it seems that something is missing. Could be a permission problem... I would suggest:

    1. go to a user admin account

    Connect using built in Administrator | Create the local admin account. 7, 8, Windows Vista

    Install or run Adobe applications in the new user account. Mac OS X

    2 remove the application DW CC 2014 by uninstalling or using the cleantool.

    https://helpx.Adobe.com/creative-cloud/help/install-apps.html#uninstall apps

    Use the CC cleaning tool to resolve installation problems. CC, CS3 - CS6

    3. manually delete the directories of config according to KB: (you need to of course search the CC 2014 folder instead of the older versions in the KB)

    Restore preferences | Dreamweaver CS4, CS5, CS5.5, CS6

    This step will ensure that also the configuration file will be regenerated on re installation!

    4 reinstall on the new admin account and test again. If works please go back to the old account and test again.

    Good luck!

Maybe you are looking for

  • How to open a local file on the computer?

    I use FF 25.0.1 connect my console EMC VNX5300 JAVA so I can administer the San. One of the functions is to create reports on the use of SAN. The SAN console writes files on the local computer and use the browser to open and view the file. Here is th

  • 2011 macbook pro

    I have a 2011 end, 13 "macbook pro. A year ago I put the distribution of linux mint on this, since the computer was working super slow. Recently, I tried power on and nothing. I replaced the brick cable power/charging about 5 months ago and recently

  • computer running very very slow and takes place in Not responding mode

    My computer is very slow and when I finally get in line and try to do something or go to another web site, it goes into Not responding mode

  • Frozen laptop to "install updates 1 of 1.

    I have a laptop Acer 5542 6 months old. In the last month, I got the blue screen twice, and I have no idea why. The laptop has been hot, is it possible that? I have now bought a laptop to computer has hope that was the least of my problems. Apparentl

  • B286HK cut: wallpaper

    I recently installed a B286HK I am running Windows 8.2 to 3840 x 2160.  After a lot of adjustments I managed to do that work well with the largest part of the office suite - a pain.  I'm not trying to use it with TurboCAD or Adobe Illustrator.  In bo