java.io.FileNotFoundException:
解决方案:
在Windows中的文件路径格式为 D:\test\111.jpg
而在Java中的文件路径格式为 D:/test/111.jpg
在java中使用前者则会报错,所以需要先将Windows中的文件路径转换为java中可识别的路径。
作如下处理:
String str="D:\\test\\111.jpg";
String location=str.replace("\\\\", "/");
String[] strings=storageClient.upload_file(location, "jpg", null);