base64(5)
-
Spring boot 이미지 stream 또는 base64로 넘기기
StreamSpring bootimport org.springframework.core.io.Resource;import org.springframework.core.io.UrlResource;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.RequestMapping;import org.springframework.web.bind.a..
2024.12.05 -
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 -
minikube secret 작업
https://kubernetes.io/ko/docs/tasks/configmap-secret/managing-secret-using-kubectl/ kubectl을 사용한 시크릿(Secret) 관리 kubectl 커맨드를 사용하여 시크릿 오브젝트를 생성. # 목록 조회 kubectl get secret -A # 내용 보기 kubectl describe secret {secret 이름} -n {namespace} ---------------------------- Name: bootstrap-token-abcdef Namespace: {namespace} Labels: Annotations: Type: bootstrap.kubernetes.io/token Data ==== auth-extra-groups..
2024.02.19 -
Django DB에 이미지 저장 및 가져오기
image_data = models.BinaryField(null=True) box.image_data = base64.b64encode(output.getvalue()) if self.image_data != None : return format_html("",self.image_data.decode('UTF-8'))
2021.02.11