×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Mar 2006
    Posts
    124

    FileConnection open returns IOException

    hi there,
    When I try to open a file using fileconnection apis, I get an IOException.
    The error message is "Opening a connection failed: -5".

    What does this error mean ? How can I debug it ?

    environment

    device : Nokia 6682
    file path : file:///MemoryStick/images/test.jpg --> this file is present and readable
    api call: FileConnection fileConn = (FileConnection) Connector.open(fileName, Connector.READ);
    security: file connecctor read permission enabled.

    thanks

  2. #2
    Super Contributor
    Join Date
    Dec 2005
    Location
    Europe/Poland/Warsaw
    Posts
    1,697

    Re: FileConnection open returns IOException

    hi brown,

    http://discussion.forum.nokia.com/fo...tion+failed%3A
    try to enumerate roots first (use nokia example midlet for that) to see how it works on that specific device (mean: file connection),
    regards,
    Peter

  3. #3
    Regular Contributor
    Join Date
    Mar 2006
    Posts
    124

    Re: FileConnection open returns IOException

    That worked !
    The root was not "Memorystick", it is "Memory Card" .
    Thanks for the information Peter, greatly appreciated.

    ~b

Similar Threads

  1. (FileConnection) Share apps between 6600 and 6630
    By matteopiccioni in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2006-06-21, 21:59
  2. ExampleClientEngine ...
    By GeKI in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2005-12-16, 07:12
  3. Replies: 3
    Last Post: 2005-10-12, 05:26
  4. Java FileConnection Optional Package 1.0 (JSR 75)
    By thecrowi in forum Mobile Java General
    Replies: 0
    Last Post: 2004-09-24, 08:29
  5. Personal
    By JSmith77 in forum PersonalJava
    Replies: 4
    Last Post: 2003-07-30, 12:52

Posting Permissions

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