예제 #1
0
 public static boolean upload(File file, String appname, String app_version) {
   boolean flag = true;
   try {
     jss.bucket("fmapp").object(appname + "_" + app_version + ".apk").entity(file).put();
   } catch (Exception e) {
     flag = false;
   } finally {
     jss.destroy();
   }
   return flag;
 }
예제 #2
0
 public static String download() {
   URI uri = jss.bucket("mifm").object("mifm_0.94.2.apk").generatePresignedUrl(3600, Method.GET);
   System.err.println(uri);
   return null;
 }