I would like to pass a file called 'abc_137.xml' stored on my c:\tradeSet
using the below
InputStream stream = this.getClass().getResourceAsStream("c:\tradeSet\abc_137.xml");
Error :
I get the MalFormedURLException
How can I pass the c:\tradeSet\<File> to getResourceAsStream?
getResourceAsStream() expects a String.
Can I use the File Object,convert this File Object to a String and pass it?
Please help.