generate functionThu, 15 Dec 2022

download image from url, save to '/dalle_images/' and return a full url of the image

function downloadAndSaveImgFromUrl(url, path) { # download ... # save ... # return ... } downloadAndSaveImgFromUrl('http://example.com/img01.png', '/dalle_images/')

Want to kickstart your project?Use the new AI Studio to create your code