No video

URL to File/Blob in JavaScript

  Рет қаралды 53,930

OpenJavaScript

OpenJavaScript

Күн бұрын

👉 Source code: openjavascript...
‍🎓 NEW: Earn a professional certificate in web development from Meta Inc. (course links in card below) 👇
⚡ Looking for high-performance, afforable web hosting? We use HostWithLove: bit.ly/3V2RM9Q ❤️
This tutorial shows you how to fetch data from a URL of any type and turn this into a readable File/Blob in JavaScript.
#javascript #blob #file #filereader #webdevelopment #tutorial #javascript_tutorial
🔔 Subscribe for more tutorials just like this: / @openjavascript
⚡Web development professional certificates from Meta Inc.⚡
Front-End Developer Professional Certificate: imp.i384100.ne...
Back-End Developer Professional Certificate: imp.i384100.ne...
iOS Developer Professional Certificate: imp.i384100.ne...
Meta Android Developer Professional Certificate: imp.i384100.ne...
Meta Database Engineer Professional Certificate: imp.i384100.ne...
Website: openjavascript...
Twitter: / openjavascript

Пікірлер: 42
@OpenJavaScript
@OpenJavaScript Жыл бұрын
Thanks for watching! 👉 Blog post with source code: openjavascript.info/2022/10/18/image-url-to-blob-in-javascript/
@rhialicandido8644
@rhialicandido8644 12 күн бұрын
The best explantion of File/Blob I've seen! Thanks for the video!
@ayoadeleke9474
@ayoadeleke9474 Жыл бұрын
very nice video. it was concise and informative. will definitely be coming back to your profile for my tutorials!
@OpenJavaScript
@OpenJavaScript Жыл бұрын
Thanks, see you again soon then!
@YondeCode
@YondeCode 7 ай бұрын
Thank you ! I had headaches reading the MDN docs by myself, you helped me very much, have a good day
@user-bj4uv8up9d
@user-bj4uv8up9d Жыл бұрын
thanks buddy I was trying since past 3 days but your video help me to get output thanks again. love you bro
@OpenJavaScript
@OpenJavaScript Жыл бұрын
That's great, glad this helped!
@johnwayne8059
@johnwayne8059 4 ай бұрын
Pretty helpful video!👍👍👍 Thanks for the work! Maybe you could stretch it a bit with giving more examples like you did with files, just with manipulate DOM-elements, just as an idea!😅😇😁
@anton1492
@anton1492 Жыл бұрын
thank you very much. i finally understood BLOB!
@OpenJavaScript
@OpenJavaScript Жыл бұрын
Great, happy it helped!
@syuo5051
@syuo5051 4 ай бұрын
Thank you! Very useful and simple explanation as expected.
@alanmurray4011
@alanmurray4011 Жыл бұрын
Exactly what I was looking for, thank you 🙏 I’m building an app with an API and it seems the image url paths have a security token that expires within a few hours, because when I save the paths to localstorage and render them everything works fine for a few hours, but eventually the server responds with an error. Hoping this does the trick.
@OpenJavaScript
@OpenJavaScript Жыл бұрын
Yes, this should to the trick of getting the image data so you are not reliant upon the expiring URL. In case you are interested in then saving the image data in localstorage, you'll need to stringify it first. Here's a tutorial on that in case it's useful: kzbin.info/www/bejne/joubdJ2LbsqUjKM Good luck!
@alanmurray4011
@alanmurray4011 Жыл бұрын
@@OpenJavaScript I will definitely check it out, thank you. You've got yourself a new subscriber. 🙂 Keep up the great work.
@volselongames4505
@volselongames4505 Жыл бұрын
thank you very much friend, good luck to you
@OpenJavaScript
@OpenJavaScript Жыл бұрын
Thanks, glad you enjoyed the tutorial!
@sabinmorris6479
@sabinmorris6479 Жыл бұрын
thank you sir for good presentation can you help to show how can move that file to other directory using that blob scenario please? help me
@OpenJavaScript
@OpenJavaScript Жыл бұрын
You cannot specify in the browser into which folder on a user's computer you want to store the download. You just don't have permission. What you can do, however, if you are running JavaScript in Node, is use the File System module to manipulate the file system. In case you are unfamilar, here's my tutorial on that: kzbin.info/www/bejne/mqW3n4qum61kb7c
@syntheticperson
@syntheticperson Жыл бұрын
Very helpful. Thanks
@OpenJavaScript
@OpenJavaScript Жыл бұрын
You're welcome 😊
@sunlirick
@sunlirick Жыл бұрын
thank you... 💝
@OpenJavaScript
@OpenJavaScript Жыл бұрын
You're welcome :)
@andyidung7521
@andyidung7521 Жыл бұрын
Please do this with a video url that is most important, i believe most people want this on video url source too.
@DevDivine
@DevDivine Жыл бұрын
Thanks for this helpful video, many many many and infinite many thanks to you
@OpenJavaScript
@OpenJavaScript Жыл бұрын
Infinite thanks? I'll take that!
@user-iv3qy7fy2d
@user-iv3qy7fy2d 2 ай бұрын
Tell me how to download videos from BLOB url
@piotrszczesniak
@piotrszczesniak Жыл бұрын
Super informative in easy to grasp manner! Thanks - liked and subscribed :)
@OpenJavaScript
@OpenJavaScript Жыл бұрын
Thank you for reaching out to let me know. Glad you liked the video and great to have you on board as a subscriber :)
@mattratliff2063
@mattratliff2063 Жыл бұрын
Great video. So I noticed that the name that you provided for the image blob didn't appear in the browser tab when you opening the image. Is there a way to use the File object to customize the name of the browser tab to display the name of the file?
@UzHandy
@UzHandy 11 ай бұрын
And how we can save mp3 files from internet to device. I mean I use filesystem plugin of ionic. And it allows me to save to the storage. Can you make a new video and then share it?
@santiagofantoni2643
@santiagofantoni2643 Жыл бұрын
How could I save the file/blob into the image folder of my App?
@linuxstudy1
@linuxstudy1 Жыл бұрын
you are amazing man
@OpenJavaScript
@OpenJavaScript Жыл бұрын
Thanks!
@nicholasc.5944
@nicholasc.5944 Жыл бұрын
you sound a lot like that one breadtuber Tom Nicholas
@OpenJavaScript
@OpenJavaScript Жыл бұрын
I had not heard of this person, but listening to some of his videos, I do agree 😂
@victormanuelsandovalamaral
@victormanuelsandovalamaral Жыл бұрын
If I want to receive a pdf by fetch, how would it be?
@dudeyouhavenoidea
@dudeyouhavenoidea 8 ай бұрын
I love you 😭😭
@g43s
@g43s Жыл бұрын
I get file extension error, even tho my blob.type equals image/jpeg
@OpenJavaScript
@OpenJavaScript Жыл бұрын
Hard for me to diagnose without your script. But I have posted a live working example on my blog. Maybe you find this useful: openjavascript.info/2022/10/18/image-url-to-blob-in-javascript/
@Dragon-Slay3r
@Dragon-Slay3r Жыл бұрын
There's 2 blobs now on the right side of the window? New exit strategy? Lol
@OpenJavaScript
@OpenJavaScript Жыл бұрын
Timestamp? Maybe I was logging something earlier with a new example...
@kavithakannan7215
@kavithakannan7215 Жыл бұрын
How to download blob image from facebook or instagram?
Deep Dive into Blobs, Files, and ArrayBuffers
17:42
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 35 М.
Blobs and Blob URLs | JavaScript Tutorial
15:32
OpenJavaScript
Рет қаралды 26 М.
GTA 5 vs GTA San Andreas Doctors🥼🚑
00:57
Xzit Thamer
Рет қаралды 25 МЛН
Oh No! My Doll Fell In The Dirt🤧💩
00:17
ToolTastic
Рет қаралды 13 МЛН
Загрузка файлов с фронтенда
18:49
Михаил Непомнящий
Рет қаралды 51 М.
The Biggest Issues I've Faced Web Scraping (and how to fix them)
15:03
JavaScript - 4 Things You Need to Know About Blobs
4:17
Azul Coding
Рет қаралды 232
Read a file using the FileReader API - JavaScript Tutorial
25:48
OpenJavaScript
Рет қаралды 21 М.
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 474 М.
JavaScript FileReader
15:08
Kyle Robinson Young
Рет қаралды 138 М.
JavaScript Visualized - Event Loop, Web APIs, (Micro)task Queue
12:35