binary(2)
-
Spring Boot에서 이미지 가져오기
Binary를 직접 가져오는 경우buttons: [ { text: 'Generate QR Code', handler: function(button) { const urlToEncode = 'https://example.com'; // Directly set the src of the image to the FastAPI or Spring Boot endpoint that returns the image const qrCodeUrl = '/qrcode?url=' + encodeURIComponent(urlToEncode); // Add the image component to ..
2024.10.19 -
FastAPI에서 이미지 가져오기
Binary를 직접 가져오기pom.xml org.apache.httpcomponents.client5 httpclient5 5.1Spring Boot Codeimport org.springframework.core.io.InputStreamResource;import org.springframework.http.HttpHeaders;import org.springframework.http.MediaType;import org.springframework.http.ResponseEntity;import org.springframework.web.bind.annotation.GetMapping;import org.springframework.web.bind.annotation.RequestParam;impo..
2024.10.19