ASP.NET Core에서 PNG 이미지를 Base64 문자열로 변환하는 API 만들기
ASP.NET Core에서 특정 이미지 파일을 Base64 문자열로 변환하여 반환하는 API를 구현할 수 있습니다. 이 API는 wwwroot/images/logos/ 디렉터리에서 이미지를 찾아 data:image/png;base64,... 형식으로 변환한 후 반환합니다.
https://www.memoengine.com/docs/aspnet/core/web-api/convert-png-to-base64/
Comments
Be the first to post a comment