How can I access my app folder... BlackBerry Playbook os

Location:

My webwork app works fine except for one thing. I have a button that needs to open a pdf file that is buddled with the app say its in the root directory and its test.pdf named. My idea was to locate the position of the file (to find the path of the application). Then use call function to launch the adobe reader software to open the file.

ex: path-of-my-app/test.pdf

I came across this:

BlackBerry.IO.dir.app.Storage.Path + "test.pdf".

BlackBerry.Invoke.Invoke ({}
target: "com.rim.bb.app.adobeReader."
Action: "bb.action.OPEN."
type: "application/pdf"
URI: dir.app.storage.path + "test.pdf".
(}, onSuccess, onError);

It seems that the way invoke does not work for BB playbook os.

Can someone help me with this?

Thank you very much!

problem solved:

I have corrected the action script code:

public function stringToBlob(data:String, encoding:String):Object
{
           var characterSet:String = translateEncodingIntoASCharacterSet(encoding);
            var ba:ByteArray = new ByteArray();
            if (characterSet == "base64")
            {
                var base64Encoder:Base64Encoder = new Base64Encoder();
                base64Encoder.encode(data);
                ba.writeUTFBytes(base64Encoder.toString());
            }
        else if (characterSet == "binary")
        {
        var base64Decoder:Base64Decoder = new Base64Decoder();
                base64Decoder.decode(data);
                ba = base64Decoder.toByteArray();
        }
            else
            {
                ba.writeMultiByte(data, characterSet);
            }

            var bm:BlobManager = getBlobManager();
            var blobId:String = bm.createBlob(ba).id;

            return new WebWorksReturnValue(blobId).jsonObject;
        }

http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/stringToblog-save-image-problem/...

Thanks for all peardox!!!!!!!!!

Tags: BlackBerry Developers

Similar Questions

  • How can I access the App Store from iTunes on my laptop?  (NOT my phone).

    How can I access the App Store from iTunes on my laptop?  (NOT my phone).

    Hello

    In iTunes, click on the Apps icon on the top left and an "App Store" button will show more to the right.

  • I'm currently developing apps on my creative cloud. My account has two subscriptions and I am trying to use one of them, but after that download the message of "no subscription found" apps will appear when you try to license. How can I access the apps? I

    I'm currently developing apps on my creative cloud. My account has two subscriptions and I am trying to use one of them, but after that download the message of "no subscription found" apps will appear when you try to license. How can I access the apps? I use a Mac

    Hello

    Please see connect and disconnect activate Cloud Creative applications

    Advanced solutions for connection with Adobe Creative Cloud and Creative Suite applications errors

    Concerning

  • How can I access the profile folder?

    IOriginal title: profile disappeared

    I had a user account under 'Pierre' (I am the only user/administrator) in which there were many folders (travel, photos, music,...). This folder/account is not accessible and visible in the Solution Explorer. Yet, when I do a search under 'C' it is still there under c/users and I can copy files and folders from there to store them in a different folder where I do not have access to the future.

    How can I do this immediately accessible account again under explore with all the data that was there without recourse to this procedure of workaround/copy of humungus? Dozen thank you!

    Stone

    What you reference is not an account, but a profile folder. It's probably hidden. You now need to tell Windows Explorer to show hidden folders: Tools / Folder Options / view / show hidden files, folders and drives. When you see then it again, by that you can view it right click it and checking its properties.

    To be the only 'administrator': it is a very risky way of running things. In this forum we receive a flood of requests from people whose one and only admin account has failed for some reason any. Plan in advance and creating, testing and documenting an alternative admin account would you save a lot of trouble.
  • Smartphones how can I get bbm on my blackBerry playbook

    Hi I'm new to blackberry, so I wonder if I can get bbm on my playbook without a blackberry phone

    Or if I need a blackberry phone I could use friends or will he be there messages

    If I get bbm on my playbook how :-)

    Right now, you need a BlackBerry phone paired to your PlayBook to use BBM. If all goes well at somepoint in the future BBM will come the PlayBook like a native app without the need of a BlackBerry phone.

    You can pair your phone to friends to your tablet, but it will use her contacts list. It reflects all that is on their phone - e-mail, address book, contacts BBM, etc... You will not be able to create your own BBM list using their phone.

  • How can I access my music folder by using the start menu. I'm used to be able to do.

    When I turned on my computer this morning, I wanted to go to my music folder that I normally have access using the 'start' button in the lower left corner of the screen. Normally, I get instant access. Today, I get a message that needs to close Internet Explorer. I am currently using Firefox as my browser, just to try out it. I use Windows XP Home Edition.

    When I turned on my computer this morning, I wanted to go to my music folder that I normally have access using the 'start' button in the lower left corner of the screen. Normally, I get instant access. Today, I get a message that needs to close Internet Explorer. I am currently using Firefox as my browser, just to try out it. I use Windows XP Home Edition.

    ==================================
    If you go to... My Documents, then my music
    It works no better?

  • How can I access the 'now playing' when first opening the music app?

    How can I access the 'now playing' when first opening the music app? There is no tab or option like in previous iOS, would be in the upper right

    When the music is playing, slide up from the bottom of the home screen to see the center of control and current reading is also there.

  • How can I access folders and files under % CommonApplicationData %?

    How can I access folders and files under % CommonApplicationData %?

    It is able to access through explorer.exe?
    Thank you.

    Hello

    Thanks for posting the query on the Microsoft Community Forums.

    Looks like you need assistance in accessing the files and folders under % CommonApplicationData %

    The directory that serves as a common repository for application-specific data that is shared by all users is CommonApplicationData.

    a. Click Start.

    b. Select run windows.

    c. Enter the following command

    d. %systemdrive%\Documents and Settings\All Users\Application Data

    e. the folder will be opened.

    Hope this information helps. Get back to us if you have related queries about the issue.

  • How can I access my emails after the death of my PC. I had a pc using Windows Vista and I served my Windows Mail e-mail program.

    Disaster of Windows Mail.  Where are my emails please?

    How can I access my emails after the death of my PC. I had a pc using Windows Vista and I served my Windows Mail e-mail program.  The computer has stopped working so I removed the hard drive, put it in a case and now use it as an external drive.  My new computer, I took possession of the Documents and Settings folder, and I'm looking for emails.  I followed the path, Documents and Settings / / AppData / Local / Microsoft / Windows Mail but there are 2 folders, backup & stationery as well as a few small files.  Where I could hide my email? Please, I beg you.

    There should be a directory called local folders under the message store and eml files organized into folders named after the directories under this directory are.  They may be hidden files, so make sure that you have enabled the display of hidden files and folders under control panel | Folder options | View.  You can also try to search *.eml, because messages are stored as eml files.  See www.oehelp.com/backup.aspx#wm for background.

    Steve

  • How can I access my music files through Windows Media Player?

    OK, here's the facts:
    I have Windows Vista.
    Most of my music in my music is missing.
    I can view and listen to the music of "missing" in Windows Media Player (library).
    In Windows Media player, if I click on a song and 'open file location' need me for my music, and the file is not there.
    Looking for songs via the start menu or through my computer does not work.
    MP3 audio files are also missing.

    Not having access to the original files, I can't add music files individually to my mp3 (Windows Media Player lets you synchronize files only, and I don't want to lose a part of the 'missing' files I have on my mp3 using the Sync feature).

    How can I access my music? Clearly, it is still on my computer somewhere since I can play through Windows Media Player.

    Hello

    Step 1: Check what all records are controlled by the player. Then check these records, if the music file is present.

    http://Windows.Microsoft.com/en-us/Windows-Vista/add-items-to-the-Windows-Media-Player-library

    Step 2: View the folder hid

    http://Windows.Microsoft.com/en-us/Windows-Vista/Show-hidden-files

    I hope this helps!

  • What databases are available on the BB? How can I access it desktop?

    Hi all

    Please can someone tell what databases are available or possible to maintain on the BlackBerry Curve 8300? Is it possible to have .csv files separated by commas.

    Secondly, how can I access these databases on a device that uses the resident program on the desktop?

    Thank you.

    We do similar things to what you seem to want, with data on a BlackBerry.  We have the client software on the BlackBerry that synchronize data with the server.  The server can push updates, but this only (currently at least) works in a BES environment.  Once the data are extensive, the application program that receives the data can do what he wants with it, including be persisted.

    If you don't want to write all of this, then I would look at Sybase offer.

    See the httppushdemo comes with the JDE for an example of PUSH to work.

  • How can I configure network server in blackberry phones smart blackBerry bold 9700

    How can I configure network server in blackberry bold 9700

    I want that my third-party applications to access the organization intranet using your organization's network.

    When I tried to change the permissions of third-party application, it shows RIMconnections, interactions, data from the user... don't allow, deny permission is there.

    How can I set thesehttp://docs.blackberry.com/en/smartphone_users/deliverables/23895/Third_party_application_connection...

    Yes, if you read the link you posted, these settings are for OS6 and higher devices.

    Not for OS5 and you're on OS5.

  • How can I access the properties in reader for mobile

    How can I access the drive properties in the mobile app?

    Hi robmorrison75,

    Unfortunately, it is not possible to display the properties of the fields on form or annotations in Acrobat Reader mobile apps (for iOS, Android, Windows Phone).

    Please use the version of desktop of Acrobat Pro to view and change the properties.

    Sorry for the inconvenience.

  • CC: How can I register my apps on my laptop than full applications, no 30-day trial?

    I bought Creative cloud on my desk. How can I register my apps on my laptop than full applications, no 30-day trial?

    Post edited by: Melissa Rios

    You must login to your account to ACCESS using your Adobe ID and then be able to download your applications.

    It will automatically check to see if you have a valid subscription and you install a full licensed version

  • If I hit "delete" instead "delete from disk" in an attempt to get rid of unwanted photos, where are they going?  How can I access them on a Mac to remove?

    If I hit "delete" instead "delete from disk" in an attempt to get rid of unwanted photos, where are they going?  How can I access them on a Mac to remove?

    They are scattered in several files.  Many are in a specific folder.

    My problem is that I can't locate them. I want to just get rid of them to save space and future confusion.

    If you could me a tip assuming that they are in a single folder, that could help me today and tomorrow.

    Thank you very much.

    Stan

Maybe you are looking for