提交 32bf46d7 authored 作者: Whispa's avatar Whispa

commit commit

上级 33dad646
......@@ -70,11 +70,10 @@
<artifactId>jjwt</artifactId>
<version>0.9.1</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.wso2.apache.httpcomponents/httpclient -->
<dependency>
<groupId>org.wso2.apache.httpcomponents</groupId>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.3.1.wso2v1</version>
<version>4.5.2</version>
</dependency>
<dependency>
<groupId>com.mashape.unirest</groupId>
......
......@@ -246,9 +246,9 @@ public class PostController {
if (thumbs != null) {
for (MultipartFile file : thumbs) {
StringBuilder sb = new StringBuilder();
sb.append("data:image/png;base64,");
sb.append(StringUtils.newStringUtf8(Base64.encodeBase64(file.getBytes())));
// StringBuilder sb = new StringBuilder();
// sb.append("data:image/png;base64,");
// sb.append(StringUtils.newStringUtf8(Base64.encodeBase64(file.getBytes())));
// Path store = storageService.store(file);
// String string = MvcUriComponentsBuilder.fromMethodName(FileUploadController.class,
// "serveFile", store.getFileName().toString()).build().toUri().toString();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论