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; }
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; }