![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
namemuni
这个作者很懒,什么都没留下…
展开
-
等比例压缩图片文件大小
1.第一种方法返回byte数组,用于直接把流存放在数据库public class Demo { public static void main(String[] args) { File f = new File("D:\1.jpg"); try { InputStream is = new FileInputStream(f); ByteArrayOutputStr...原创 2019-02-22 17:31:31 · 1721 阅读 · 0 评论 -
springboot整合ueditor+图片上传
项目地址https://ueditor.baidu.com/website/下载步骤开始整合因为项目使用的springboot框架,而UEditor对于java后端的支持仅仅是给了一个jsp文件,因此,需要对该文件进行一下处理,修改为面向springboot的统一controller。1、放到项目中2、引入ueditor需要的jar包3、创建test.htm...原创 2019-02-28 18:26:18 · 5188 阅读 · 4 评论