03 2020 档案

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