Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
testinz
Posts: 175
Registered: ‎09-03-2012
My Device: Blackberry 10
Accepted Solution

How to copy file?

Just wondering how do you do copy file operation?

 

Also, where is the best place to store your applicatin specific file?

Please use plain text.
BlackBerry Development Advisor
jomurray
Posts: 123
Registered: ‎09-06-2010
My Device: Z30
My Carrier: Vodafone UK

Re: How to copy file?

You should use QFile: https://developer.blackberry.com/cascades/reference/qfile.html to perform reading and writing of files. There is a good description of the various file locations and their use by appliations in this document on slides 14 and 15:  https://developer.blackberry.com/cascades/files/webinars/dealing_with_data.pdf

---------------------------------------
Please refrain from posting new questions in solved threads.
Feel free to press the like button on the right side if you liked my attempts to help :-)
And please mark posts as solved if you think I found the solution or set you on its path. Thanks!
Found a bug? Report it here
Follow me on Twitter @jcmrim
Please use plain text.
Developer
testinz
Posts: 175
Registered: ‎09-03-2012
My Device: Blackberry 10

Re: How to copy file?

Thanks JoMurray.

Is there a file length restriction?
Please use plain text.
BlackBerry Development Advisor
jomurray
Posts: 123
Registered: ‎09-06-2010
My Device: Z30
My Carrier: Vodafone UK

Re: How to copy file?

I'm not aware of any specifc restrictions.

---------------------------------------
Please refrain from posting new questions in solved threads.
Feel free to press the like button on the right side if you liked my attempts to help :-)
And please mark posts as solved if you think I found the solution or set you on its path. Thanks!
Found a bug? Report it here
Follow me on Twitter @jcmrim
Please use plain text.
Developer
smiley
Posts: 1,454
Registered: ‎07-14-2008
My Device: Z10
My Carrier: Fido

Re: How to copy file?

Not related but how do you read and write file from sd card?

Please use plain text.