Commit c57cfa0b authored by shiyu's avatar shiyu

图片旋转2

parent 61a0448d
......@@ -1106,9 +1106,9 @@ public class ItemServiceImpl implements ItemService {
@Override
public Result uploadImage(MultipartFile file) {
try {
InputStream inputStream = file.getInputStream();
BufferedImage bufferedImage = ImageIO.read(inputStream);
/*String lastKey = ".jpg";
/* InputStream inputStream = file.getInputStream();
BufferedImage bufferedImage = ImageIO.read(inputStream);*/
/* String lastKey = ".jpg";
if (StringUtils.isNotBlank(file.getOriginalFilename())) {
lastKey = file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
}
......
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