To access local files of QNXStageWebView

Hello community,

I need help in the understanding of the capabilities of webkit playbook.

My AIR application creates images and save them in File.applicationStorageDirectory or File.applicationDirectory and QNXStageWebView must take these images and show.

QNXStageWebView displays some html with javascript that takes pictures of the url I give to him.

And for now webview can show that stored pictures in the folder root CBC in my project as "src/appicon.png" and I saw this image in this way "local:///appicon.png" Web view, otherwise, it produces an error such as the failed to load Document [NetworkErrorEvent type = "error" bubbles = false cancelable = false eventPhase = 2 text = "could not read a file file://" errorID =-10037 url=file:///accounts/1000/appdata/com.xxx.PRPlaybook.debug.testDev_ybook_debug63d6f35d/app/air/142676836_2_0_0.png.]

Please can someone explain, where I can store the images to display in Web mode?

Thank you.

Hello. Laptop more, I saved an image in the same directory as the HTML I was working. Say that my .html file is in File.documents I put that image there too and then he referred to simply as "appicon.png" without the file:///blahbblahblah.

Tags: BlackBerry Developers

Similar Questions

  • BlackBerry Smartphones "Cannot access local files" error when syncing with Outlook

    I have an old BlackBerry Bold 9780 which works well. However, just yesterday, I started getting a "Cannot access local files" error when you try to use BB Desktop to synchronize with Microsoft Outlook 2016. I uninstalled and reinstalled the BlackBerry Desktop Software 7.1, but the problem persists. There is no error when using Outlook or other aspects of synchronization in BB Desktop.

    I am running 64-bit Windows 10 on my desktop computer. I got no synchronization issues in the past until yesterday. To my knowledge, nothing has changed.

    A Google search for the error message returns questions posted on several different forums, but there is no clear solution given.

    The problem seems to be in Outlook, rather than with the BlackBerry Desktop, at least in my case. I solved it by repairing my Microsoft Office installation. For most versions of Office, this is accomplished by going to the list of programs installed in the Control Panel, highlight and right-click on the desktop and select the option to repair or change.

  • BlackBerry Smartphones "Cannot access local files" error when syncing with Outlookl

    I have an old BlackBerry Bold 9780 which works well. However, just yesterday, I started getting a "Cannot access local files" error when you try to use BB Desktop to synchronize with Microsoft Outlook 2016. I uninstalled and reinstalled the BlackBerry Desktop Software 7.1, but the problem persists. There is no error when using Outlook or other aspects of synchronization in BB Desktop.

    I am running 64-bit Windows 10 on my desktop computer. I got no synchronization issues in the past until yesterday. To my knowledge, nothing has changed.

    A Google search for the error message returns questions posted on several different forums, but there is no clear solution given.

    The problem seems to be in Outlook, rather than with the BlackBerry Desktop, at least in my case. I solved it by repairing my Microsoft Office installation.  For most versions of Office, this is accomplished by going to the list of programs installed in the Control Panel, highlight and right-click on the desktop and select the option to repair or change.

  • Block 10 FireFox accesses local files the same source in Ajax? Chrome for this, but the workaround is - disable-web-security.

    I have a few Ajax in a test program that is accessing a local file. It worked well until I updated to Firefox 10. 10 Firefox blocks access to local files, even if they have the same source location? Chrome has this problem but I can overcome it by launching Chrome with the "-disable-web-security" option. Is there a similar to Firefox 10 option?

    A good place to ask for advice on web development is to the 'Web Standards Development/evangelism' MozillaZine forum.

    Aid to this forum are better informed on issues related to web development.

    You must register on MozillaZine forum site to post in this forum.

  • -Distance SWFs cannot access local files.

    Security Sandbox Violation

    File:///D|/AMIT%20DATA/Personel/STANDS%20PROJECT/productsimages.swf interrupted connection - not allowed to http://www.fltech.in/AWG/app.swf

    I'm trying to load productimages.swf from another server to my client, but cannot load that...

    You must add a cross-domain permission on your local server file.

  • To access local files via a servlet in glassfish

    I need a way to access a configuration of a servlet file, but keep it hidden from the end-user customer. This is the method I've used in the Oracle application server:
    filepath = getServletContext().getResource("/cfgfile").getPath();
    InputStream is = getClass().getResourceAsStream(filepath);
    It worked. However in glassfish this technique returns a true url in a file at the root of the document. That would be ok but it allows the user to see from a web browser as well and I want to avoid this. Is it possible that I can do this?

    You can place it somewhere under the WEB directory - INF. files in this directory will not be served by the web server for an http request.

    RAM memory.

  • How to disable local file access security check?

    Windows 7
    Firefox 3.6.16
    I would like to disable the security check used to block access to local files.

    See:

  • I'm able to access my local files next to the email

    Please help me restore my local files. I am no longer able to scroll from side to side to see and use. They are usually next to emails for easy access. I don't know what happened. Help

    Try a system restore to a Date before the problem began:

    Restore point:

    http://www.howtogeek.com/HOWTO/Windows-Vista/using-Windows-Vista-system-restore/

    Do Safe Mode system restore, if it is impossible to do in Normal Mode.

    Try typing F8 at startup and in the list of Boot selections, select Mode safe using ARROW top to go there > and then press ENTER.

    Try a restore of the system once, to choose a Restore Point prior to your problem...

    Click Start > programs > Accessories > system tools > system restore > choose another time > next > etc.

    http://www.windowsvistauserguide.com/system_restore.htm

    Read the above for a very good graph shows how backward more than 5 days in the System Restore Points by checking the correct box.

    See you soon.

    Mick Murphy - Microsoft partner

  • QNXStageWebView broken for local files now?

    Hi all

    I try to load a string as html in a QNXStageWebView and having difficulty doing so. The code looks like this:

    entryWebView = new QNXStageWebView();

    entryWebView.enableCookies = true;

    entryWebView.addEventListener (Event.COMPLETE, loadEntryWebView);

    entryWebView.loadString (string);

    It does not; I see a webView white, white window. Furthermore, entryWebView is a variable of class declared as follows:

    private var entryWebView:QNXStageWebView = null;

    OK, I think loadString could not be implemented. So, I try the following, I've read these tips very as a solution to need to load local files. Now, because this is a dynamic content, I would have to save an html file and then load it. Obviously not a long term solution, but good enough, until that loadString works.

    entryWebView = new QNXStageWebView();

    entryWebView.enableCookies = true;

    entryWebView.addEventListener (Event.COMPLETE, loadEntryWebView);

    entryWebView.loadURL (File.applicationDirectory.nativePath + "upploadare");

    When the file is of course named upploadare and stored in the src folder in my project.

    This will display an error message in the web view, which reads: error. The browser doesn't know how to manage this web page. Try again.

    I think that HTML in my file may be malformed. Yet any html I try, this same error pops up.

    Just to make sure that I do everything else right, I check if the entryWebView will be responsible for google based on the url. He does.

    What I am doing wrong?

    Thanks in advance.

    EDIT: Tried again a thing. I specified an invalid path and the same error message as above is received.

    I currently have the same problem during the test with loadString(), so I decided to find the source of the problem with the loadURL() and local files.

    As you have discovered, QNXStageWebView can't handle app: or app-storage: URL.  For local stuff, therefore, give him a file: URL.

    Unfortunately, when you use File.applicationDirectory as basis (whether by incorrectly simply concatenating ' / upploadare ' or properly using resolvePath ("file.html)), the prefix of the url that is stuck in there rest app.:

    What you are doing by entering the nativePath are a start, but you're going to all this trouble, technically.  This is not to say it won't work in your particular case... just that it might not work always and there are a few alternatives that are safer.

    It is not because the URLS are encoded, while native paths are not.  When you use either one, you will probably run in disorders whenever you have special characters, such as spaces.

    Here's a safe alternative.  Use File.applicationDirectory.resolvePath ('file.html') to get an app: refer to the file, and then take the native path and use it to construct a new file object:

    var appPath:File = File.applicationDirectory.resolvePath('file.html');
    var filePath:File = new File(appPath.nativePath);
    webView.loadURL(filePath.url);
    // Note: use  of "new File()" and filePath.url
    

    Another option is to find the relative path to the current directory of the application when it runs.  To do this, you must do this:

    // in your constructorNativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE, onInvoke);
    
    // use current dir from event, and PB-specific relative path
    private function onInvoke(e:InvokeEvent):void {
        var path:File = e.currentDirectory.resolvePath('app/air/file.html');
        webView.loadUrl(path.url);
    }
    

    I don't like it, because it depends on currently undocumented (except available to sandbox of Elena post) where the file would be.

    As it turns out, however, there is another approach, you might like: ;-)

    var content:String = "

    test page

    "; webView.loadStringWithBase(content, '');

    Well Yes, you guessed it.  Although loadString() fails for reasons unknown, using the above and any base (none that I tried, including an empty string) seems to work.  Yay for me!

  • Is it possible to control the local file system access?

    Is it possible to control installed programs access to the local file system content in the same way windows internet access firewall controls?

    That is, allow a program installed in "C:\Program Files\Test\" with the name test.exe access directory folder for writing and for reading Documents. Everything else is denied by default, in the case where he wants to read 'Desktop\Private lettre.txt' user will ask if I want to allow this.
    I found several programs with this feature, but they are outdated and do not support win7 64 bit :(
    CoreForce and online Security Suite (ESS) Solutions

    Hello

    Thanks for posting your query in the Microsoft Community Forum.

    Based on the information, it seems that you try to use a program to block programs installed to access the directory folder for writing and My Documents only for the reading of the code.

    It would be useful that you can answer these questions to help you further.

    1. you try to write an access program directory folder for writing and My Documents only for playback?

    2. How are you trying to code this program?

    If you try to write a program, the question you posted would be better suited in the MSDN Forums. I would recommend posting your query in the MSDN Forums for further assistance:

    MSDN forums

    Let us know if you need help with Windows related issues. We will be happy to help you.

  • Access to the local file System on JCS-SaaS

    Hello

    I am trying to access the local file system of my JCS-SaaS cloud with two options below. But it doesn't work anyway. Can you please give me some ideas to move my local file to domain JCS.

    Doc reference: http://docs.Oracle.com/cloud/latest/javacs_gs/CSJSU/GUID-1452AA1C-5B32-4c68-845E-A7802344A523.htm#CSJSU7273

    (1) using the file browser

    I have deployed the sample project given with SaaS - Cloud Java SDK extension. I am able to see the page but could not do anything on this page.

    Please see the attachment for the same thing. Nothing works on this page. He works for one of you?

    (2) using the file system Shell access: I am getting following error. Can you please.

    > java-jar %SDK_HOME%/lib/javacloud.jar - a http://SFTP.US2.cloud.Oracle.com:20 u [email protected] -id inaccenturetrial00450-TR javatrial2180 - fs Java shell access file system service

    [TIP] - check your network connections. If you are behind a proxy http (s), try using

    the option - httpproxy

    [TIP] - the service is perhaps out of service. We can also host name or the name of the port

    an error in the url http://SFTP.US2.cloud.Oracle.com:20

    [ERROR] - java.net.ConnectException: Connection timed out: connect

    Thanks in advance

    Samy

    I know that there was a problem at least on an older instance for the shell, however in the latest versions is should be fixed. Have you tried with the proxy as parameter suggests the error message? Also "-d" flag provide you additional details of debugging. Then try something like:

    java-jar javacloud.jar - user username - fs - id oracletrialXXXX-TR javatrialXXXX - dc US2 - hp host: port d

    --

    Jani Rautiainen

    Relationship with the developers of Applications in fusion

    https://blogs.Oracle.com/fadevrel/

  • Question of access to the local file CS6 road

    I have an external USB drive with all the files on my local website for the customers, this disc starts to behave badly. I already backed up the files on another drive and I need to know if I unplug and do not take into account the original USB and attemnpt to access the files copied from another disk will be the paths automatically change?

    For example, if I have a folder with a path

    Original drive / folder with the local files / localdreamweaverfolder

    and try to access the same files with the original drive path change to

    Disc 2 / folder with the local files / localdreamweaverfolder

    will there be a problem?

    R

    You must change the site definition to point to the new location on the new drive. You should be golden, once you do this.

  • custom palette with tabs to swf Flex cannot access the local file system

    OK, with Flash Player 10, we can load and save local files from a flex web application, then why can't I in the bridge, when I load the SWF in a palette with bridge tabs, load and save functions no longer work.

    Is it because I'm loading as a ScriptUI called range of flash, instead of a palette of HTML?

    I tried the overall Flash Player security in order to allow the authorization of my swf and created a .cfg, but nothing seems to work.

    Help, please.

    Thank you, Todd

    I don't know exactly how your Panel is a failure. I have attached three examples of Flex projects that include the JavaScripts and Flash panels for bridge. These all worked for me in Bridge CS4.

    To access the local, I used FileRefrence.save () for these tests - note that this method is file system was added in Flash Player 10, and so this will not work in Bridge CS3, which uses the Flash Player 9 when you use a widget Flash Player in ScriptUI. In addition, to compile the example I had to modify the Flex builder projects require Flash Player 10 by changing the settings on the page 'Flex compiler' project in Flex Builder settings.

    If you use another method to access the system files that works with Flash Player 9, please let me know what it is and I can test it.

    Among sovereign wealth funds also gain access to the network. To activate SWF access to the network, I had to add a file of global security settings. Information on creating these files are available here:

    http://www.Adobe.com/devnet/flashplayer/articles/flash_player_10_security.PDF

    But, for example, on my mac, I put all these projects in a "BridgeFlashPanels" folder on my desktop. Next, I created the BridgeFlashPanels.cfg file in/Library/Application Support / Macromedia / FlashPlayerTrust. The .cfg file had a line: the path to the folder on my desktop.

    A description of the panels:

    PanelWithNetworkAccess - this Panel has a 'Test' button, when clicked, loads http://www.adobe.com and place it in the text box (note, it will be just the raw HTML, does not make the page).

    PanelWithFileSystemAccess - for Flash Player 10 only, this Panel has a Test button and a text field. When you click the Test button, it writes the contents of the text box in the BridgeTest.txt file, unless you choose another file.

    PanelWithNetworkAndFileSystemAccess - for Flash Player 10 only, this Panel has a text field and two buttons: "Load Test" and "Test to save." The load test loads http://www.adobe.com in the text field and save him testing saves the content of the text field to BridgeTest.txt.

    To try signs, navigate the bin-debug for each project files with Bridge, the .swfs and .jsx files are there. Double-click the thumbnail for the .jsx and bridge must run the script and add the sign indicating the SWF file.

    -David

  • local files from a deleted account IMAP still take place, can I just delete them?

    I ran a use of disk Analyzer on my c:\ drive which was full. Although not a major contributor, I've always found that an old account of work, where I am no longer employed, still has his record in C:\Users\MyUserName\AppData\Roaming\Thunderbird\Profiles\rd4y3dca.default\ImapMail\ and takes about 1.5 GB.

    I deleted the account in Thunderbird when I left and discover that now these local files. Can - I just delete them without further ADO, or am I obliged to take certain actions of Thunderbird to avoid screwing up too?

    Thanks for your time, Niles

    the reason why the imap e-mail account is still in the profile is - some people accidentally remove and then e-mail accounts must restore the account, so he is always kept as a just in case you need to restore.

    If you are sure that you don't need any emails stored in imap e-mail account can access the e-mail account folder and delete the account manually.

    you will need make folders and hidden files visible:

    You probably always use the same profile, is that the 'account name 'mail you must remove.
    To go directly to:
    Close Thunderbird.

    C:\Users\MyUserName\AppData\Roaming\Thunderbird\Profiles\rd4y3dca.default\ImapMail\ mail account name
    

    OR through Thunderbird:
    Help > troubleshooting information
    Click on the view file"" button.
    a new window opens to display your content profile folder name.

    Close Thunderbird now - this is important.

    Click the folder «ImapMail»
    You should see all your imap e-mail accounts.
    Delete the account that you don't need.

    Restart Thunderbird.

  • Help, please! I can't find my emails in my local files!

    I recently had problems with my computer that required it to go repair. I backed up all my files and the repair shop was able to fix my computer without losing any files. My local files were stored on my c: drive which, due to repair, is now my e:drive (Techno will know what I mean). I had to download Mozilla Thunderbird again and now my local files have disappeared. I located the profile on my e:drive and used that path for files the. BUT it does not display one of my old messages. I'm desperate to sort what I need your emails for work. Can someone advise me on how to solve this problem?

    I am sure that no data has been lost. I don't know how access to this or to implement. Any help would be appreciated!

    Ok.
    More important, close Thunderbird
    Open the new profile folder (menu help > troubleshooting information > show the profile button if you don't know where he is and then close Thunderbird)
    Open the folder mail. (you will see a folder "local Folders")
    Open the old profile folder and open the folder mail again.

    Now copy the old files to the new files overwrite them files needed to replace the new with the old.

    Open Thunderbird. Now, you need to reset the path of the local folders.

    If the above fails, you can copy the entire folder the old appdata to the new Thunderbird. But who will replace all new messages, so you will need to register externally in Thunderbird before you do such a thing. so you can reimport the

Maybe you are looking for

  • cannot sign

    I clearly don't remember the username and password for my account and I have a lot of favorites that I would transfer to Firefox that I use on my other computer. I ask that Mozilla send me my username and password but I don't get an email. Help!

  • Warranty does cover backlight bleeding on Satellite A300-1JH

    Hello. I would like to know if backlight bleeding to a laptop (it of bad enough, nearly half of the screen is gray instead of black) can be solved with warranty. They change the display or give me a new model? Or are they taking action at all? I can

  • CD recovery set for Pavilion DV - 6000

    When I bought the DV-6000, I made a set of recovery CD (1,2 & 3).  When I boot from CD bay, I get a message "these PC recovery disk do not support this model of PC.  I've had no luck trying to find on HP's site on how to buy a "package of recovery." 

  • How downgrade Presario CQ45 - 104TX from Vista to XP?

    bought Presario CQ45-104TX in August 2008 and since then never formatted. But now I want to format the C: drive and install XP OS. Purchased in Hong Kong and the purchase I asked the Bank to install the English version of Vista for me. After the purc

  • Unable to find PID in fsx, no help line to insert the query for p

    My original question, none HAVE in FSX, MS response see Site FSX with link. Said link you need of PID for assistance. Site says 'PID games' Start game and in Help, insert MS FSX, there is no line in FSX to insert a query on. I have my number of licen