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/')

Questions about programming?Chat with your personal AI assistant