Adi3y ago

Adi – 19-20 Jan 10

I am uploading file image/video but in nodejs it is only working if I upload local image/video and not if I download it from some url. Code: ‘’’ const downloadImageFromUrl = async () => { const video = await axios.get(, { responseType: 'arraybuffer' }); const buffer = Buffer.from(, 'binary').toString('base64'); return buffer; } ‘’’ Now is above code different if I read mp4 or png jpeg file from local using fs.readFile in nodejs??
1 Reply
reactibot3y ago
This thread hasn’t had any activity in 12 hours, so it’s now locked. If you have a followup question, you may reply to this thread so other members know they're related. Threads are closed automatically after 12 hours, or if the member who started it reacts to a message with ✅ to mark that as the accepted answer.