I am using Java to create a CFX tag in Coldfusion to read an Excel File, but I am having trouble opening the file using InputStream. I have the following code:
response.write(file + "<BR>");
InputStream myxls = new FileInputStream(file.toString());
(where response.write writes to the browser, and the string file comes in from request) If I hard code the path like this:
InputStream myxls = new FileInputStream("C:\\CFusionMX\\ Traffic Flow Team Action Register.xls");
it works great, but in I use the variable file (which holds the same value I hardcoded) it will not work. Does anyone have any suggestions? Thanks for your help.
response.write(file + "<BR>");
InputStream myxls = new FileInputStream(file.toString());
(where response.write writes to the browser, and the string file comes in from request) If I hard code the path like this:
InputStream myxls = new FileInputStream("C:\\CFusionMX\\ Traffic Flow Team Action Register.xls");
it works great, but in I use the variable file (which holds the same value I hardcoded) it will not work. Does anyone have any suggestions? Thanks for your help.