How to Convert Images Into Base 64 Data URLs with JavaScript

  Рет қаралды 49,485

dcode

dcode

Күн бұрын

Пікірлер
@dcode-software
@dcode-software 2 жыл бұрын
🔽 CONVERT CANVAS INTO BASE64 URL 🔽 kzbin.info/www/bejne/j6C5e4qQp7hljbc 🎓 COMPLETE JAVASCRIPT CRASH COURSE FOR BEGINNERS 👇: www.udemy.com/course/the-ultimate-javascript-dom-crash-course/?referralCode=DC343E5C8ED163F337E1
@WiLDeveD
@WiLDeveD 2 жыл бұрын
Well done Dom !!! cool video. thanks
@earlchesterantonio1581
@earlchesterantonio1581 2 жыл бұрын
Can i achieve this results with js only? Without using the file input?
@pouriyanourouznejad7090
@pouriyanourouznejad7090 2 жыл бұрын
1) Can we convert that very long url to a very short url and get the same image as result? 2) this data url will only works for images? Or we can use it for any files? 3) I tried to create a download link for an image with data-url in the anchor tag. but when I click on the anchor tag, it doesn't show me the image as a result! Just shows a blank screen! And I have to reload that blank screen to see the image! Y is this happening? What should I do? (my native language isn't English, so... Sorry if I did something wrong in my words 😁)
@erturkyorulmaz7376
@erturkyorulmaz7376 Жыл бұрын
Can we get this data type just giving local url? (exmp : img.src = "images/sample.jpg")
@faaizalam235
@faaizalam235 2 жыл бұрын
Bro I am. Working on a project, and that where I had to use your this method for image to be stored in local storage but now I want to send it to the server so it want this base 64 url image to be as it was in file object, so how can I basically make the back after making a image into string base 64 to its original face
@yassineabdelouafi
@yassineabdelouafi Жыл бұрын
Thank You ,i need a help please how to upload image as base64 in dexie.js database ?
@aaomms7986
@aaomms7986 Жыл бұрын
Thank man!!
@hikari1690
@hikari1690 2 жыл бұрын
Haha, a few weeks after doing this myself. I wish I could tell past me to procrastinate a little and just watch this
@RandomMusicD
@RandomMusicD Жыл бұрын
Thanks bro
@whatthefunction9140
@whatthefunction9140 2 жыл бұрын
Do a video on the limits of data urls
@Acuce7ibd468j
@Acuce7ibd468j 2 жыл бұрын
I really need to know how to get the file as blob without using the form parent tag . Thanks
@aminabudahab
@aminabudahab 2 жыл бұрын
URL.createObjectURL
@thetutorialdoctor
@thetutorialdoctor 4 ай бұрын
Solid.
@prakashchaure6307
@prakashchaure6307 2 жыл бұрын
@Funny-collector
@Funny-collector Жыл бұрын
I need the rest of the video. or any other video to watch
@getsetalk
@getsetalk 2 жыл бұрын
How to convert any image address which is uploaded at any website , that's how to convert In Blob
@Muhammad-bp7dq
@Muhammad-bp7dq 2 жыл бұрын
off topic...... what should i do after i learn vanila js ?
@dcode-software
@dcode-software 2 жыл бұрын
Learn a framework - React, Vue, Svelte etc.
@riteshgsh
@riteshgsh 2 жыл бұрын
If you are interested in moving forward with front-end then learn React and if backend then Node js
@jefferyaaron3462
@jefferyaaron3462 Жыл бұрын
I got errors on jpg so this is the code i use u can wrap a function around it return new Promise((res, rej) => { const reader = new FileReader(); reader.readAsDataURL(file); reader.onload = () => { res(console.log(reader.result)); }; reader.onerror = (err) => { rej(err); }; });
@naiandersonbruno1841
@naiandersonbruno1841 2 жыл бұрын
Theme vs code, please 😁, and thanks for helpe
@dcode-software
@dcode-software 2 жыл бұрын
No problem. The theme is called "dcode" - you can find it on the VS Code Marketplace
@naiandersonbruno1841
@naiandersonbruno1841 2 жыл бұрын
@@dcode-software thanks😁
@dynamics9000
@dynamics9000 2 жыл бұрын
If you want to beat the market or become a millionaire, the first thing you need to do is , to get financial education. a fellow creator][[]][
@dchubad
@dchubad Жыл бұрын
darta lol
@dcode-software
@dcode-software Жыл бұрын
🦘
@nanonorthlabs3375
@nanonorthlabs3375 2 жыл бұрын
Ive said this before on your videos I’ll say this again, these videos have very little to do with software engineering or improving your skills as a software developer and more to do with being good at following step by step instructions, aka tutorials. Channels like these are detrimental for beginners, this is not how problem solving skills are developed. Now I understand if you are showing how to solve problems or atleast make something challenging, but who the needs videos that are 4-10 mins long where you can literally google it in 30 seconds. This is contenting whoring and fishing for subscribers. It’s like language learning channels that never go past the first level
@dcode-software
@dcode-software 2 жыл бұрын
This intends to be a tutorial-style video. If someone needs to know how to convert an image into a data URL they can search KZbin and find this video. It's 4 minutes long so the viewer can get their answer quick and move on
How the Most Popular Encoding on Web Works? Base64 Explained
8:11
Mehul - Codedamn
Рет қаралды 26 М.
Create File URLs in JavaScript: Data URLs v Blob URLs
11:12
OpenJavaScript
Рет қаралды 4,1 М.
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
What are Base 64 Encoded Images and why are they used?
6:33
How To Load Images Like A Pro
15:48
Web Dev Simplified
Рет қаралды 390 М.
Learn JavaScript MOUSE EVENTS in 10 minutes! 🖱
10:30
Bro Code
Рет қаралды 53 М.
Deep Dive into Blobs, Files, and ArrayBuffers
17:42
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 38 М.
How To Convert File To Base64 Format React Hook Component
9:49
URL to File/Blob in JavaScript
10:14
OpenJavaScript
Рет қаралды 57 М.
How to FETCH data from an API using JavaScript ↩️
14:17
Bro Code
Рет қаралды 172 М.
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН