×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2009
    Posts
    48

    file creation problem

    Hi friends,

    In nokia 6111 phone : security exception is getting.
    My code is:
    String photos = System.getProperty("fileconn.dir.photos");
    String path = photos + filename;

    //path = "file:///C:/predefgallery/predefphotos/ In this we need to create file r not my application is untrusted
    //i want untrusted application
    fileconnection = (FileConnection) Connector.open(path, Connector.READ_WRITE);

    if (!fileconnection.exists()) {
    fileconnection.create();
    //fileconnection.setHidden(true);
    }
    dis = fileconnection.openDataInputStream();
    dos = fileconnection.openDataOutputStream();
    } catch (IOException e) {

    e.printStackTrace();

    } catch (SecurityException e) {
    e.printStackTrace();

    }


    regards,
    chinnu

  2. #2
    Nokia Developer Expert
    Join Date
    May 2007
    Location
    Mexico D.F
    Posts
    351

    Re: file creation problem

    What happens when you only try to read or receive?
    :Ruben

  3. #3
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: file creation problem

    Hello chinnu_p,
    What you are planning to implement?
    Are you trying to access the images?
    I think that you are trying to get the photos/files.Before you move ahead you should read the basics about the File Connection API,you can read the same here
    http://developers.sun.com/mobility/a...ileconnection/
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

Similar Threads

  1. Uploading a file using http post problem
    By mynick1000 in forum Symbian Networking & Messaging (Closed)
    Replies: 16
    Last Post: 2009-08-01, 14:28
  2. Problem with GCCE build in Carbide.vs
    By raffaelbechara in forum Symbian
    Replies: 6
    Last Post: 2008-10-20, 16:06
  3. Problem with pyobfuscate
    By JOM in forum Symbian
    Replies: 3
    Last Post: 2008-06-20, 22:47
  4. Problem relating smil file!!!
    By symwarrior in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2006-12-21, 16:16
  5. Nokia Image Converter
    By davidpurdie in forum General Development Questions
    Replies: 0
    Last Post: 2004-02-18, 15:31

Posting Permissions

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