Citing Picture Editor returns/dev/shmem path. How to access this path?

Hi guys!

I invoke the picture from Qt/C++ code editor.

Everything is OK, but when I get the path of the image returned by the image card, this path is "/ dev/shmem/IMG_XXXX.jpg".

How can I access this way? QFile told me that the path does not exist and it is impossible for me get the file

I know that/dev/shmem is a RAM file system and I know is on tmp dir also, but the tmp dir is empty (tmp would be essential to be a link to/dev/shmem)

.

How to access this path?

(In collaboration with SDK Lib 10.1.0.4633)

Thank you

Code:

InvokeManager *iManagerInvokeRequest iRequest;
QString sharedUrl = imageItem->getImageSharedUrl().toString();
QString miURI;
QVariantMap data = QVariantMap();
miURI = QString("file://").append(sharedUrl);
QString upScale= "false";
data["upScale"] = upScale;
bool ok;

QByteArray encData = bb::PpsObject::encode(data, &ok);
iRequest.setData(encData);

iRequest.setAction("bb.action.EDIT");
QString mimeT = QString("image/").append(miURI.section('.', -1));
iRequest.setMimeType(mimeT);
iRequest.setUri(miURI);
iRequest.setTarget("sys.pictureeditor.cardeditor");
InvokeTargetReply *reply = iManager->invoke(iRequest);
connect(iManager, SIGNAL(childCardDone(const bb::system::CardDoneMessage &)),              this, SLOT(imageEditProcess(const bb::system::CardDoneMessage &)));

SLOT :----------void QDPage::imageEditProcess(const bb::system::CardDoneMessage &m) {    qDebug() << "Card childCardDone:" << m.reason();    qDebug() << "ruta orig =" << m.data();  //// RETURNS "/dev/shmem/IMG_XXXXX.jpg"    if(QFile::exists(ruta)) qDebug("Exists !!!!!!!!!!!!!");    else qDebug("doesn't exists ?????????");  //////// DOESN'T EXISTS}


I'm sorry. My bad. Only a stupid mistake.

Everything is ok now

Tags: BlackBerry Developers

Similar Questions

  • During a flight over an image of a Web page, the URL associated with the image opens at the bottom of the browser. I don't want this information to appear whenever I have my cursor on a picture of the Web page. How to disable this option?

    The pop-up window appears in the bottom left of the browser Firefox. Yet once, it displays the URL by clicking on the image for each image on the Web page.

    The easiest way is to use the add-on of status-4-Evar. With it, you can choose to not display the messages State or hover URL preview, or rather display them in the bar modules or the address bar.

    https://addons.Mozilla.org/firefox/addon/status-4-EVAR

  • Store data cached in app/Library/Caches, how to access this folder?

    Hey all,.

    I'm trying to comply with the new rules to keep content which is not essential to the still very desirable application to the cache in 5.0.1. The initial project was built using Flash IDE and FlashDevelop and files stored in the Documents folder. He was rejected from the app store for 2.23 not to put these files in the app/Library/Caches folder.

    I checked to see if this file exists using a bunch of traces of File.applicationDirectory.resolvePath () and I can not find the existence of records. I see that/Library/Caches exist but I get errors writing to that so that may be it.

    For example, here's a bunch of tracks using applicationDirectory and applicationStorageDirectory and their outputs:

    File.applicationDirectory.resolvePath('/Library/Caches');

    File.applicationDirectory.resolvePath ('. /.. /.. / Library/Caches ');

    File.applicationDirectory.resolvePath ('. /... / Library/Caches ');

    File.applicationDirectory.resolvePath('.. / Library/Caches');

    File.applicationDirectory.resolvePath('Library/Caches');

    File.applicationDirectory.resolvePath ('. /... / Library/Caches ');

    ----------------------------

    File.applicationStorageDirectory.resolvePath('/Library/Caches');

    File.applicationStorageDirectory.resolvePath ('. /.. /.. / Library/Caches ');

    File.applicationStorageDirectory.resolvePath ('. /... / Library/Caches ');

    File.applicationStorageDirectory.resolvePath('./Library/Caches');

    File.applicationStorageDirectory.resolvePath('Library/Caches');

    File.applicationStorageDirectory.resolvePath ('. /... / Library/Caches ');

    outputs:

    cache 1 exist: / Library/Caches

    cache 2 exist: /var/mobile/Applications/F6DD6D3B-E01A-44B5-849C-349170008DDD/myApp.app

    cache 3 exist: /var/mobile/Applications/F6DD6D3B-E01A-44B5-849C-349170008DDD/myApp.app

    cache 4 exist: /var/mobile/Applications/F6DD6D3B-E01A-44B5-849C-349170008DDD/myApp.app

    There is no cache 5: /var/mobile/Applications/F6DD6D3B-E01A-44B5-849C-349170008DDD/myApp.app/Library/Caches

    cache 6 exist: /var/mobile/Applications/F6DD6D3B-E01A-44B5-849C-349170008DDD/myApp.app

    ----------------------------

    cache 1 exist: / Library/Caches

    cache 2 is: var/mobile/Applications/F6DD6D3B-E01A-44B5-849C-349170008DDD/Library/Application Support/com.example.myApp/Local store

    cache 3 exist: var/mobile/Applications/F6DD6D3B-E01A-44B5-849C-349170008DDD/Library/Application Support/com.example.myApp/Local store

    There is no cache 4: var/mobile/Applications/F6DD6D3B-E01A-44B5-849C-349170008DDD/Library/Application Support/com.example.myApp/Local store/Library/Caches

    There is no cache 5: var/mobile/Applications/F6DD6D3B-E01A-44B5-849C-349170008DDD/Library/Application Support/com.example.myApp/Local store/Library/Caches

    cache 6 exist: var/mobile/Applications/F6DD6D3B-E01A-44B5-849C-349170008DDD/Library/Application Support/com.example.myApp/Local store

    I expected "Library/Caches" to resolve... You can clearly see 'cache 5 does not exist: /var/mobile/Applications/F6DD6D3B-E01A-44B5-849C-349170008DDD/myApp.app/Library/Caches' traced here.

    I even made Library\Caches records, he understood as a folder in my publication options. I still don't see the existence of directories. Now, it's weird. I also include a folder "data" and that is if I draw for her.

    Some tips on how I can find this path "Library/Caches"?

    The answer to access/library/Caches/looks like so:

    var homePath:String = File.applicationDirectory.nativePath;

    var cachesFolder:File = new queue (homePath + "/ \.\./Library/Caches");

    If (cachesFolder.exists) {trace ("it exists!") ;}}

  • On some documents, I get an error message that ends with "...» create an association in the Set Associations control panel. "Why do I get this and how to access this control panel?

    Need help to access the Panel Associations value so I can open the docs have no association, according to the error message that I receive

    Ideas:

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    You need a program on your system to open these documents (file types), and the program must be associated with the file type. Go to start / Default programs / associate a file or Protocol with a program and scroll down to the types of files of these documents.  Can the default program open this type of file or the file type is same?  If this isn't the case, you will need to install a software that can read and open possibly work with the types of files in question.  Exactly which types of files you can not read (what are their extensions - the three digit after the name of the file identifier). ?  If you do not see the extension, go to start / Control Panel / folder Options / View / and uncheck Hide extensions of known and then file types try to look at the files again.

    Please post back with results or if you have other issues (as may have answered your question).

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How to retouch this photo

    Hi , I am intermediate photo editor. Please suggest me how to retouch this photo below of quick and easy way?60e824b2a123831fa79274404bf82e61.jpg

    I hated showing this because I can't imagine why you might want to modify your original image. It is striking and beautiful. In the old days we'd talk about this photograph as having a quality of "stop-press". But as an abstract exercise (and since Benjamin and offered suggestions for change Trevor), I have prepared something you may find useful. As you can see on the properties and layers panels, this is the method:

    1. go to CMYK and choose channel C because it reduces or eliminates the contrast of the freckles-on-no-spot freckles task area.

    2 drag it down to the new pipe symbol to create a copy of C Alpha channel which will be later used as a layer of brightness.

    3 come back to RGB. Choose channels and select > all and then edit > copy the string of Alpa.

    4. change its blending in luminosity Mode and its opacity to 50%.

    5. Add a mask and paint as shown in the layers panel, to bring some colors. Soft brush 10% increments to build density in the mask.

    6. Add a curves adjustment as indicated layer to build weights. See the properties of curved shape.

    Note: Depending on your aesthetic taste, there are widely the possibility to modify the image by changing the the contrast of brightness and opacity layer and its mask as well as adjustments in the adjustment layer curves.

    (I prefer the original.)

    [Edit] Between steps 3 and 4. I forgot to include: return to the Panel layers and editing > paste the Alpha channel. Sorry about that.

  • How to access to the Cisco W-CE500-24PC

    I just got this outdoor retail business unit, but this problem is, I tried to access this switch with the solid Setup Cisco Configuration Assistant. Nothing happens. Then I reboot and press Setup to return to the factory, tried again, he didn't get on but I only see the IP (169.254.XXX.XXX) but no subnet mask. All suggest and please describe "How to access this option" very clear so I can understand it. It should be ready in a few days.

    My laptop running Windows 7 64 bit. I just read the list of manuals, he says he's going with Windows XP.

    Pledge of salvation,

    It is a pleasure to hear that you are now moving forward.

    Best regards, Dave

  • How to access custom in the .vm file properties

    Hello

    I have created custom property for the screen using file-> project properties.

    This property applies to one of my screen.

    If I want to access the value of the custom property in .vm.

    How to access this value. I tried to use screen.getTest (), but it returns nothing for me.

    For custom controls properties, you can use:

    #set ($value = "")
    #set ($value = $control.getProperties () .get ("PropertyName"))

    So I think for the screen, it should be something like:

    #set ($value = $screen.getProperties () .get ("PropertyName"))

  • Instructions immediately talk about Firefox window, but does not say how to get this window.

    It took me almost an hour to get to this point. I am technologically challenged. I have an old version of Firefox. The instructions immediately embark on the 'Firefox window' but says nothing about how to access this window. Where this window? Maybe I should just download Opera?

    "Firefox" means Firefox, this is the window that appears when Firefox is opened.

    You must follow the directions to update to the latest version Firefox update to Firefox 33.0.2 (read to the bottom of the page to see the screenshots). This will take you to the most recent version of Firefox, and then we can help you with other problems you're having with Firefox.

    If you are a beginner in Firefox, try to start with Firefox – an overview of the main features of the reading

  • How to access a conditional expression IF-step via API?

    If we have a flow control stage IF so we can access its conditional expression via:

    "" 'RunState.SequenceFile.Data.Seq ["MainSequence']." Hand ['IF']. ConditionExpr

    How to access this term if we do not know the type of step beforehand? I create a sort of auditor of static expressions. I have access to a step through

    RunState.InitialSelection.SelectedFile.Data.Seq [Locals.seqIndex]. GetStep (Locals.stepIndex, Locals.groupIndex)

    What if

    RunState.InitialSelection.SelectedFile.Data.Seq [Locals.seqIndex]. GetStep (Locals.stepIndex, Locals.groupIndex). StepType.Name == "NI_Flow_If".

    then I want to use the Engine.CheckExpression method to the conditional expression IF-step

    Hey maksya,

    Attached is a file of sequence with a flow control if statement that checks to see if the step is a 'NI_Flow_If' using:

    "" 'RunState.SequenceFile.Data.Seq ["MainSequence']." GetStep (0, StepGroup_Main). StepType.Name == "NI_Flow_If".

    If this is the case, it will then call check expression on the current ConditionExpr:

    RunState.Engine.CheckExpression (ThisContext, RunState.SequenceFile.Data.Seq ["MainSequence"]. GetStep(0,StepGroup_Main). ConditionExpr, 0, Locals.errorString, NULL, null)

    You will notice that this expression is not valid, and that's because "ConditionExpr" is not valid for all types of step.  However, because this step will not work UNLESS the stage is a NI_Flow_If, the expression will be valid at run time.

    Also is that I changed to using InitialSelection.SelectedFile to SequenceFile just to facilitate the testing of the installation.  However, it will be the same for your SelectedFile.

  • How to access a hard drive on Aspire M3201

    Hello people I had another problem that I need help.
    I have a windows 7 1 TB hard drive and I would like to use this drive hard on my aspire m3201 but I don't know how to access this disk. When I plug the drive HARD I can feel it working or a vibration, but I can't seem to start.
    I really need help on this folks.
    Thanks a lot for your precious time.
    Tech 1126

    do you need it as additional storage or you must start windows 7 in there?

  • How to access the parameters using command prompt - administrator account

    I am administrator on my machine Home premium windows 7 and tried to make a sfc/scannow command prompt, but it said that I need to run it as an administrator. I need to know how to access this setting so I can use the command prompt. Thank you.

    Steve

    When I click on

    You should right click to see the drop down menu. Right click = right button of the mouse. Click the left mouse button =.

  • How to access my portfolio site?

    It is said that with the agreement of the student, I have access to a portfolio site. How to access this Web site?

    Hi Thomas,

    This link may help: free Behance | Free trial of Behance Adobe

    Kind regards

    Sheena

  • In simple terms how you access DEHAZE in Lightroom CC 2015?

    I installed LR CC 2105 and according to Adobe using the current version.  Today I received a notice that there is a product called DEHAZE improvement that can be used with LR CC 2015.  Try as I might, and I've been everywhere in the develop module, I can't find out how to access this feature of 'New'.  Even with the HELP of the menu is not to solve the problem.

    Terms/language simple where can I find the DEHAZE claims CC LR 2015 Adobe feature exists?

    It should be at the bottom of the effects Panel

  • How to access the disc content PE10

    It is installed but when I look at the DVD models I don't get that many choices and it tries to download the templates - I thought that the disc content contained well others... how you access this content?

    http://www.elementsvillage.com/forums/showthread.php?t=71174

  • Image display - how to display a picture by using an absolute path?

    How can I display an image by using an absolute path to a compiled WebHelp?

    Our developers use RH8 ID card within our internal applications to display in a window of model created using Telerik Rad Window.

    Unfortunately the images disappear from these model windows as RoboHelp removes the absolute links to images [inserted] and modifies relative in the compiled WebHelp.

    How to overcome this? Is there a solution in RH8?

    When you insert a picture that RoboHelp shows the full path in the dialog box, but if you double-click on the image, you will see that it has already been converted to a relative path.

    You can go to the HTML and change the way it the absolute path, but it must be the absolute path after aid is generated and published. It must also be valid as you work, or you will not see the subject.

    See the printed Documentation If you use it. I haven't checked if the image will survive this trip.

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

Maybe you are looking for