You Are Here:

Community: Developer Discussion Boards

#1 Old SecurityException while accessing FILE created by me - 2006-11-26, 15:47

Join Date: Nov 2006
Posts: 22
Send a message via Yahoo to contactabbas
contactabbas
Offline
Registered User
Hi,

I am getting SecurityException, while trying to read a file created by ME !!! Here is what I am doing (in correct order):
1) Get the last rootname from the FileSystemRegistry.listRoots() and get a file connection from it.

FileConnection fconn = (FileConnection)Connector.open("file:///" + rootName + "backupFile");
if (!fconn.exists())
fconn.create(); // create the file if it doesn't exist

OutputStream os = fconn.openOutputStream();

2) After this write to the output stream
3) Flush & close outputstrem, close fileconnection.
4) Get the last rootname from the FileSystemRegistry.listRoots() and get a file connection from it.

FileConnection fconn = (FileConnection)Connector.open("file:///" + rootName + "backupFile");

But then it gives "SecurityException: Access is denied" to the above file (which has been created by my application itself !!!)

The question is: What is the (portable) way where I can store and retrieve a file from?

(This happens after deploying the application on 6111, it works fine with S60 emulator).

ANY inputs would be greatly appreciated.

TIA, Abbas
Last edited by contactabbas : 2006-11-26 at 15:54.
Reply With Quote

#2 Old Re: SecurityException while accessing FILE created by me - 2006-11-27, 09:53

Join Date: Aug 2006
Posts: 486
Location: Rawalpindi, Pakistan
Send a message via MSN to nicenouman
nicenouman
Offline
Regular Contributor
try here

http://discussion.forum.nokia.com/fo...ad.php?t=55749


Regards
Nouman
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
.rsc file not getting created bhargavaramudu General Symbian C++ 1 2006-10-27 07:36
S60 theme questions Nokian_Spb Symbian Media (Graphics & Sounds) 3 2006-08-17 07:11
.app and .aif files not created during build ulrichta Carbide.c++ IDE and plug-ins 2 2006-08-13 21:45
could not find thread.mbg and thread.rsg deercrane General Symbian C++ 3 2006-04-18 10:44
File not created on the device? techno2003 Symbian User Interface 3 2003-09-26 05:34

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia