This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Copying image files..BAD file descriptor exc'  RSS feed

 
Abhijit Kulkarni
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello I am trying to copy an image file (1.gif) from one directory (A) to another directory (B).
I get the following exception while carrying the FileInputStream
operation.

Does any one have an idea about this problem
or can any one suggest me some solution?

------------------
abhijit from pune.
Ability alone is not enough for success,it must be sparked by ambition and sustained with determination
 
Abhijit Kulkarni
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I figured out the problem..
thank you for reading or not reading it!
But it was ocurred because I was trying to reference to a gif file and trying to read from a wrogn inputstream...
That is the condition when an exception occurs in the native methods... and it says Bad File Descriptor.
Hope it helps if someone else gets stuck due to similar error
thanks!

------------------
abhijit from pune.
Ability alone is not enough for success,it must be sparked by ambition and sustained with determination
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!