Adi
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(https://i.imgur.com/rfYwI5n.mp4, { responseType: 'arraybuffer' }); const buffer = Buffer.from(video.data, '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
reactibot
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. https://discord.com/channels/102860784329052160/565213527673929729/930179432054919208 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.