This commit is contained in:
Lucio Lelii 2018-06-20 14:56:51 +00:00
parent 38115cb07a
commit ed253ba2d7
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@
<groupId>org.gcube.common</groupId>
<artifactId>storagehub-client-library</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>1.0.1-SNAPSHOT</version>
<name>toragehub-client-library</name>
<dependencyManagement>

View File

@ -37,8 +37,8 @@ public class Items {
StorageHubClient shc = new StorageHubClient();
try (InputStream is = new FileInputStream(new File("/home/lucio/Downloads/bonifico ferrara anricipo.pdf"))){
String afi = shc.getWSRoot().uploadFile(is, "bonificopdf", "descr");
System.out.println(afi);
String newId = shc.getWSRoot().uploadFile(is, "bonificopdf", "descr");
System.out.println(newId);
} catch (Exception e) {
e.printStackTrace();
}