...........
file.transferTo(tmpFile);
String _path = resultDirectory[1] + refileName;
logger.debug("###########before _path:{} file.separator:{}", _path, File.separator);
_path = _path.replaceAll("\\\\", "\\\\\\\\");
logger.debug("###########after1 _path:{} file.separator:{}", _path, File.separator);
_path = _path.replaceAll("\\\\\\\\", "/");
String _path = resultDirectory[1] + refileName;
logger.debug("###########before _path:{} file.separator:{}", _path, File.separator);
_path = _path.replaceAll("\\\\", "\\\\\\\\");
logger.debug("###########after1 _path:{} file.separator:{}", _path, File.separator);
_path = _path.replaceAll("\\\\\\\\", "/");
logger.debug("###########after2 _path:{} file.separator:{}", _path, File.separator);
.........