参考文章:https://blog.csdn.net/qq_33142257/article/details/52371733
将文件url转换成URL格式,再转换成String类型,这种方法还是会报同样的错
URL url = new URL(rs.getModel()); FileInputStream fin = new FileInputStream(url.toString());
最后还是用了InputStream
URL url = new URL(rs.getModel()); InputStream fin = url.openStream();