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));
Also in JavaScript:
- jquery get request
- How can I get or extract some string part from url jquery
- slice in javascript
- Robux gift
- ajax datatable reload paging retained
- javascript is number an integer
- difference between e.preventdefault and e.stoppropagation and return false
- remove backslash in json array javascript
- npm err! 503 service unavailable proxy
- chart.js npm install
- how to reload page on button click in javascript
- Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project electronicbookshop: Compilation failure
- url redirect javascript
- check the doc name in javascript
- javascript detectar la pagina
- object find javascript
- what is local storage and session storage in javascript
- jest
- sorting number with coma datatable
- redondear de 0.05 en 0.05 javascript
- disable yellow box react native
- javascript floor
- jsdoc optional param
- how to delete object property of array javascript