ARImageSynthesizer

부분 유료
분류별 ArdicAITeam | 업데이트됨 il y a 2 mois | Artificial Intelligence/Machine Learning
인기

9.1 / 10

지연 시간

135ms

서비스 수준

100%

Health Check

N/A

모든 토론으로 돌아가기

How to display the image in html img tag?

Rapid account: Usmanugly
usmanugly
il y a un an
  const response = await axios.request(options2);
  const b64Response = btoa(response.data);
  const outputImg = document.createElement("img");
  outputImg.src = "data:image/jpeg;base64," + b64Response;

  // append it to your page
  document.body.appendChild(outputImg);

doing it like this is not working for some reason

Rapid account: Ardic AI Team
ArdicAITeam Commented il y a un an

Hello,

There should be a space between “data:image/jpeg;base64,” and the actual base64 image data. Can you this;
outputImg.src = "data:image/jpeg;base64, " + b64Response;

Our apologies for the late response, if you already found the solution please share it with us!

Best regards,
ARDIC AI Team

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입