public static InputStream downFile(String groupName, String remoteFileName) { try { StorageClient storageClient = getTrackerClient(); byte[] fileByte = storageClient.download_file(groupName, remoteFileName); InputStream ins = new ByteArrayInputStream(fileByte); return ins; } catch (IOException e) { logger.error("IO Exception: Get File from Fast DFS failed", e); } catch (Exception e) { logger.error("Non IO Exception: Get File from Fast DFS failed", e); } return null; }這是我工具類里面下載功能,請(qǐng)問(wèn)在控制臺(tái)這邊怎么實(shí)現(xiàn)下載?
添加回答
舉報(bào)
0/150
提交
取消