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> <groupId>org.gcube.common</groupId>
<artifactId>storagehub-client-library</artifactId> <artifactId>storagehub-client-library</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>1.0.1-SNAPSHOT</version>
<name>toragehub-client-library</name> <name>toragehub-client-library</name>
<dependencyManagement> <dependencyManagement>

View File

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