Answers for "how to use fetch() to fetch an image from database in js"

-2

how to use fetch() to fetch an image from database in js

let fetchURL = 'http://192.168.22.124:3000/source/';
  let image = name.map((picName) => {
    return picName
  })

  fetch(fetchURL + image)
  .then(response => response.json())
  .then(images => console.log(fetchURL + images));
Posted by: Guest on November-28-2020

Code answers related to "how to use fetch() to fetch an image from database in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language