This week's book giveaway is in the Security forum.
We're giving away four copies of Penetration Testing Basics and have Ric Messier on-line!
See this thread for details.
Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

FileNotFound Exception

rahul shandy
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The below code snippet:
ByteArrayOutputStream baos = new ByteArrayOutputStream();
fis = new FileInputStream(path);
copyStreamToStream(fis, baos);

throws FileNotFoundException when the file name contains 2 consecutive spaces. But the same code works when there are 3 or more spaces.

i am perplexed...please help somebody. you help is Highly appreciated.

Thanks and regds,
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic