Syed Ali wrote: exception.getMessage......... : C:\image\ali-pic.jpg (No such file or directory)
same code works in windows tomcat env but when uploaded to unix server tomcat gives above error
Syed Ali wrote:The image file can not be part of the web application, it has to be selected externally from the C: drive of local machines of different users .
String prefix = "C:\\image\\";
File file = new File(prefix+item.getName());
bFile = new byte[(int) file.length()];