03 2020 档案
摘要:package Controller; public class TranslationStr { public String HtmltoStr(String newText) { // newText = newText.replace("\n", "<br>"); //textBox里的换行是
阅读全文
摘要:1、视频文件转换为base64 /** * * @param videofilePath 视频文件路径带文件名 * @return base64 */ public static String videoToBase64(File videofilePath) { long size = video
阅读全文
摘要:1、base64转化成mp4文件 /** * base64 视频base64字符串 * videoFilePath 输出视频文件路径带文件名 */ public static void base64ToVideo(String base64, String videoFilePath) { try
阅读全文
摘要:1、读取文本中的内容 import java.io.*; //根据路径读文本的内容 public static String ReadFileContent(String filePath) { //定义一个file对象,用来初始化FileReader File file = new File(fi
阅读全文
摘要:1、json字符串为 { "key" : "value" } import com.alibaba.fastjson.JSONObject; //json字符号转换为json对象,然后获得key对应value public static String getJsonValue(String json
阅读全文

浙公网安备 33010602011771号