blob (아직 해결못함)

김듑듑·2022년 10월 6일
0

프론트엔드

목록 보기
15/24

이름부터 킹받아.....
local에 있는 이미지 주소를 넣어줘야하는데 아무래도 blob을 써서 넣어줘야할거같음

그래서 츄라이1

const 왜 = URL.createObjectURL(이미지);

해서 blob의 data url을 생성해서 넣어봤음

Failed to execute 'createObjectURL' on 'URL': Overload resolution failed.
옦께이
https://stackoverflow.com/questions/27120757/failed-to-execute-createobjecturl-on-url/33759534

츄라이2

URL.createObjectURL(new Blob([new ArrayBuffer(이미지)], { type: 'image/png' }))

이러지만 여전히 안됨 와이???
어디서 잘못됐을까...

(+) window.URL.revokeObjectURL(url) 해야함 메모리누수

0개의 댓글