Results 1 to 3 of 3
  1. #1
    HardRock is offline Member
    Join Date
    Jun 2012
    Posts
    5
    Rep Power
    0

    Default InputStream is unable to detect file

    this is my code -> `InputStream modelIn = new FileInputStream("en-sent.bin");`

    why its showing filenotfound exception, though i have kept the file in the project folder?

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,931
    Rep Power
    19

    Default Re: InputStream is unable to detect file

    Do:
    Java Code:
    File file = new File("en-sent.bin");
    System.out.println(file.getAbsolutePath());
    That will show you where it is looking for the file.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    HardRock is offline Member
    Join Date
    Jun 2012
    Posts
    5
    Rep Power
    0

Similar Threads

  1. Getting Inputstream of a uploaded file
    By nn12 in forum New To Java
    Replies: 0
    Last Post: 03-26-2011, 06:54 AM
  2. How can I detect the end of a line in a file ?
    By ze snow in forum New To Java
    Replies: 5
    Last Post: 02-17-2010, 10:57 AM
  3. Detect new file entry
    By rdemon in forum Advanced Java
    Replies: 4
    Last Post: 01-08-2010, 02:24 AM
  4. Unable to detect OS name
    By neetu.jainvi@gmail.com in forum Advanced Java
    Replies: 1
    Last Post: 12-09-2009, 04:56 PM
  5. Unable to read data from inputstream
    By renuka_anil in forum Java Servlet
    Replies: 0
    Last Post: 01-29-2009, 03:20 PM

Tags for this Thread

Posting Permissions

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