c++ - Open file coming from an invoke request on Blackberry 10 Cascades -


i writing blackberry 10 cascades app. trying open file email attachment.

int in_fd = open(m_uri.replace("file://","").toutf8().constdata(), o_rdonly); 

(there's reason using open() call)

but file cannot opened. understand sandboxing , app permissions, , invocation framework can make copy of file in target app's directory. can't figure out how path file can open it.

i need know:

  • how make sure invocation framework copies file apps sandbox on invocation.
  • how access resulting copied file.
  • in c++

can print example of contained inside m_uri when code runs?

if path feeding open() not have leading /, app's home directory not want.


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -