java簡單文件上傳

public static void doUpload(File file,String path, String name) throws Exception { if(null == file){ throw new Exception(); } // 基於file建立一個文件輸入流 InputStream is = new FileInputStream(file); // 設置上傳文件目錄
相關文章
相關標籤/搜索