package Controller; public class TranslationStr { public String HtmltoStr(String newText) { // newText = newText.replace("\n", "<br>"); //textBox里的换行是 Read More
posted @ 2020-03-12 20:22 活出自己范儿 Views(683) Comments(0) Diggs(0)
1、视频文件转换为base64 /** * * @param videofilePath 视频文件路径带文件名 * @return base64 */ public static String videoToBase64(File videofilePath) { long size = video Read More
posted @ 2020-03-12 19:48 活出自己范儿 Views(5874) Comments(0) Diggs(0)
1、base64转化成mp4文件 /** * base64 视频base64字符串 * videoFilePath 输出视频文件路径带文件名 */ public static void base64ToVideo(String base64, String videoFilePath) { try Read More
posted @ 2020-03-12 19:42 活出自己范儿 Views(11069) Comments(0) Diggs(0)
1、读取文本中的内容 import java.io.*; //根据路径读文本的内容 public static String ReadFileContent(String filePath) { //定义一个file对象,用来初始化FileReader File file = new File(fi Read More
posted @ 2020-03-12 19:28 活出自己范儿 Views(302) Comments(0) Diggs(0)
1、json字符串为 { "key" : "value" } import com.alibaba.fastjson.JSONObject; //json字符号转换为json对象,然后获得key对应value public static String getJsonValue(String json Read More
posted @ 2020-03-12 19:13 活出自己范儿 Views(1686) Comments(0) Diggs(0)