| Write java code to Create an API endpoint for image upload with format conversion using Spring Boot. accepts image file via POST /api/upload-image; validates format and size; converts to target format; saves securely. Structure the project as: src/main/java/controllers/, services/. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready. |