/**
* 將文件轉換成byte數組
* @param tradeFile
* @return
*/
public byte[] fileToByte(String fileUrl){
// 第1步、使用File類找到一個文件
File f= new File("fileUrl") ; // 聲明File對象
// 第2步、通過子類實例化父類對象
InputStream input = new FileInputStream(f) ; //實例化文件輸入流
// 第3步、進行讀操作
byte result[] = new byte[1024] ; // 存儲讀取內容
input.read(result) ; // 讀取內容
// 第4步、關閉輸出流
input.close() ; // 關閉輸出流
System.out.println("byte數組:" + result);
return result;
}