M
Size: a a a
M
M
A
@Attachment(value = "Видео", type = "video/mp4", fileExtension = ".mp4")
public static byte[] attachVideo(String sessionId) {
try {
File mp4 = new File(System.getProperty("java.io.tmpdir") + "temp.mp4");
mp4.deleteOnExit();
FileUtils.copyURLToFile("http://127.0.0.1:4444/video/" + sessionId + ".mp4", mp4);
return Files.toByteArray(mp4);
} catch (Exception e) {
e.printStackTrace();
}
return new byte[0];
}
A
M
M
M
M
V
A
V
V
V
A
V
V
V
TL
TL
V