forked from Cookies_Github_mirror/AquaDX
[API] Add a feature to retrieve user photos.
This commit is contained in:
@@ -119,6 +119,7 @@ public class ApiMaimai2PlayerDataController {
|
||||
byte[] targetImageContent = Files.readAllBytes(Paths.get("data/" + matchedFiles.get(imageIndex)));
|
||||
String divData = Base64.getEncoder().encodeToString(targetImageContent);
|
||||
Photo.setDivData(divData);
|
||||
Photo.setFileName(matchedFiles.get(imageIndex));
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
|
||||
Reference in New Issue
Block a user