使用Apache
IOUtils和
base64:
byte[] imageBytes = IOUtils.toByteArray(new URL("...")));String base64 = base64.getEnprer().enpreToString(imageBytes);
使用Apache
IOUtils和
base64:
byte[] imageBytes = IOUtils.toByteArray(new URL("...")));String base64 = base64.getEnprer().enpreToString(imageBytes);