Commit 7f84e58d by 陶光胜

图片base64上传

parent f90a3889
......@@ -148,7 +148,7 @@ public class UploadImgController {
@RequestMapping("/upload-img-str")
@HeaderSignIgnore
@IgnoreLogin
@GatewayParams(form = {"imageData"})
@GatewayParams(body = {"imageData"})
public RestResponse updateImgStr(String imageData){
byte[] image = org.apache.commons.codec.binary.Base64.decodeBase64(imageData.split(",")[1].getBytes());
UploadResult uploadResult = QqCloudPicUtils.uploadLocalPicStream("pic01", "", image);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment