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
Posts: 188
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?

Highlighted
Retired
Posts: 170
Registered: ‎09-06-2010
My Device: None
My Carrier: None

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

Developer
Posts: 188
Registered: ‎09-03-2012
My Device: Blackberry 10

Re: How to copy file?

Thanks JoMurray.

Is there a file length restriction?
Retired
Posts: 170
Registered: ‎09-06-2010
My Device: None
My Carrier: None

Re: How to copy file?

I'm not aware of any specifc restrictions.

Developer
Posts: 1,636
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?