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

Java Development

Reply
Developer
Posts: 59
Registered: ‎06-15-2012
My Device: 9800
My Carrier: XZY

file name extension with .rem problem

 

 

Hey guys, 

                        i am downloding the file using blackberry browser.i am using blackbery device torch 9800 with os 6.0. but i am getting file with .rem extension for all file. but the same file not showing the .rem extension on os 7.0. how to remove the .rem while creating file.

 

Thanks

Jam

 

Developer
Posts: 59
Registered: ‎06-15-2012
My Device: 9800
My Carrier: XZY

Re: file name extension with .rem problem

 

i have used below code for file to store in encryption.

but this creating TestSecure.txt.rem in blackberry device torch 9800 but i dont want this how can i remove this .rem ???

try{
//FileConnection fconn = (FileConnection)Connector.open("file:///store/home/user/TestFile.txt");
ExtendedFileConnection fconn = (ExtendedFileConnection)Connector.open("file:///store/home/user/TestSecure.txt");
fconn.setControlledAccess(CodeSigningKey.get(
CodeModuleManager.getModuleHandle("SampleFileDownload"),
CodeSigningKey.RBB_SIGNER_ID));
fconn.enableDRMForwardLock();
fconn.create();
fconn.close();
}catch (Exception e) {
e.getMessage();
}

Developer
Developer
Posts: 1,123
Registered: ‎02-10-2009
My Device: 8130 / 8350 / 9530 / 9550 / 9850 / PlayBook
My Carrier: Verizon

Re: file name extension with .rem problem

Setting the Controlled Access make the file encrypted. If you don't want it encrypted don't set the key or use DRM.
Developer
Posts: 246
Registered: ‎09-30-2010
My Device: Z10, Onyx2
My Carrier: IND XL

Re: file name extension with .rem problem

disable encryption on your option settings.
you must be enabled the encryption setting on device or media card