안녕하세요 초보개발자입니다.
아래와 같은 코드를 짜서 사용했을 때 딸기케이크이미지가 잘 공유됩니다,
하지만, imageUrl을 제 로컬에 있는 파일과 인터넷에서 가져온 주소로 하니 imageurl창이 빈 것과 동일한 결과가 나옵니다. 제가 무슨 실수를 한 것인지 잘 모르겠습니다
아래는 제 코드와 경로들입니다.로컬이미지는 526x528사이즈입니다
코드:
KakaoRequest: function() {
window.Kakao.Link.sendDefault({
objectType: ‘feed’,
content: {
title: ‘제목’,
description: ‘내용’,
imageUrl: “http://k.kakaocdn.net/dn/Q2iNx/btqgeRgV54P/VLdBs9cvyn8BJXB3o7N8UK/kakaolink40_original.png”,
link: {
mobileWebUrl: ‘http://localhost:8080’,
webUrl: ‘http://localhost:8080’,
},
},
buttons: [{
title: ‘버튼내용’,
link: {
mobileWebUrl: ‘http://localhost:8080’,
webUrl: ‘http://localhost:8080’,
},
}],
})
},
},
로컬경로:
C:/Users/user/Desktop/project2/frontend/src/views/pic.png
인터넷 이미지경로:
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAz1BMVEX74wA7Hh7/////6AD/6wD/6QD95QD/7AA2Fx4mAB86HB44Gh4oAB/74QAlAB81FR4zEh8iAB9jTBsuCB8vCx8tBR8xDx80FB8sAB8fAB+EbRdQNhyIcRb//OjXvwrkzAevmBHLswyjjBOpkhLWvgpwWRn974l8ZRjp0QZ1Xhi4oRCgiRNZQBv++tz987D862v85zXBqg5pURn862xAIx1KLxznzwaTfRX86Vf87Xz++dX+9br85zhUOxvx2QNdRBv98p3+9sEIACAWACBFKR1h91NFAAAOxklEQVR4nO2dCXeiSBDHUaC5RTwQovE2XjlGozGZ2ZDZnXz/z7QgNCK0oAg08ub/3u57k9FM/6jqrurqA6KM1tPzw8sP4lb04+Xh+ekECYH64fM7IeFu9MWSiPfn8wjvP3C39Qp93EcS3r/ibuSVevUz+ggfbs87/ZIeQgh/4m5dQvp5ivD37RvQlvQbTfhaFEAT8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