BookService.getBookInfoByIsbn)개발을 마치고, 프론트엔드와 최초 API 연동 테스트를 진행할 때 발견<img> 태그) 렌더링 컴포넌트src 속성에 data:image/jpeg;base64,[<https://shopping-phinf.pstatic.net/main_>](<https://shopping-phinf.pstatic.net/main_>)... 와 같은 이상한 데이터 구조(Base64 헤더와 일반 URL 문자열)가 주입되고 있는 것을 확인함API 명세서 디테일(데이터 타입) 인지 누락
format: byte (Base64 인코딩 문자열)형태로 내려가기로 되어 있었고, 해당 명세서를 기반으로 프론트엔드가 Base64 디코딩 처리를 해놓은 상태.
RestTemplate.getForObject(imageUrl, byte[].class)를 호출해서 이미지를 바이트 배열로 직접 다운로드함Base64.getEncoder().encodetoString() 을 통해 명세서에 정의된 규격으로 변환해서 응답 객체에 담음