diff --git a/src/main/java/org/ntlab/amaryllis/server/utils/Base64Decode.java b/src/main/java/org/ntlab/amaryllis/server/utils/Base64Decode.java index c8b2860..87b212e 100644 --- a/src/main/java/org/ntlab/amaryllis/server/utils/Base64Decode.java +++ b/src/main/java/org/ntlab/amaryllis/server/utils/Base64Decode.java @@ -6,17 +6,17 @@ public class Base64Decode { public static String saveAsFile(String vid ,String endata) throws IOException { - String path = Base64Decode.class.getResource("/data/" + vid+ ".mp4").getPath(); + String path = Base64Decode.class.getResource("/data/" + vid+ ".3gp").getPath(); //デコードを行う byte[] dedata = Base64.getDecoder().decode(endata); //ファイル作成 - File file = new File("/data/" + vid+ ".mp4"); + File file = new File("/data/" + vid+ ".3gp"); file.createNewFile(); //ファイルに音声データを書き込む - FileWriter file1 = new FileWriter("/data/" + vid+ ".mp4"); + FileWriter file1 = new FileWriter("/data/" + vid+ ".3gp"); PrintWriter pw = new PrintWriter(new BufferedWriter(file1)); pw.println(dedata);