|
|
@@ -439,7 +439,7 @@ public class MidjourneyServiceImpl implements MidjourneyService {
|
|
|
|
|
|
private String uploadPic(String url, String prefix) throws IOException {
|
|
|
byte[] body = HttpUtil.downloadBytes(url);
|
|
|
- Path tempFile = Files.createTempFile(Path.of("/mnt/pirture"),prefix, ".png");
|
|
|
+ Path tempFile = Files.createTempFile(Path.of("/mnt/picture"),prefix, ".png");
|
|
|
File file = tempFile.toFile();
|
|
|
try (FileImageOutputStream imageOutput = new FileImageOutputStream(file)) {
|
|
|
imageOutput.write(body, 0, body.length);
|