Everything You Feared about Base-64 Made Clear

  Рет қаралды 2,969

Steve Griffith - Prof3ssorSt3v3

Steve Griffith - Prof3ssorSt3v3

6 жыл бұрын

This video covers a wide range of functionality and information. Please use this as a future reference for the things that you could possibly do with base-64 Strings.
It starts by explaining what base-64 strings are and then looks at a variety of ways that you can and can't generate them - from the Number.toString( ) method, to window.btoa( ), File inputs, FileReaders, and even the HTML5 Canvas.
Side Note: Did you know that you can also use a base-64 String as a background in your CSS?
Code GIST: gist.github.com/prof3ssorSt3v...

Пікірлер: 14
@pratyashabanerjee8452
@pratyashabanerjee8452 3 жыл бұрын
there are very few channels in youtube that gives such authentic education related to web development. Thank you so much Steve sir for making us actually learn, I owe this to you.
@paulosimoes1891
@paulosimoes1891 3 жыл бұрын
Awesome video! Thanks Steve.
@tymothylim6550
@tymothylim6550 3 жыл бұрын
Thank you very much for this video! It is very helpful for me in understanding the basics behind base-64 as well as how to use it! :)
@paulgz101
@paulgz101 3 жыл бұрын
First class tutorial. Thanks very much for such detailed explanaitions.
@shehanmaduwantha4795
@shehanmaduwantha4795 Жыл бұрын
Very helpful :) Thank You
@HarshKapadia
@HarshKapadia 3 жыл бұрын
This is awesome! Thank you!
@khoavo5758
@khoavo5758 4 жыл бұрын
Thank you for the nice video! This is exactly what I'm looking for. I'm trying to put canvas content in json, I guess base64 is the way to go.
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 4 жыл бұрын
Yes. Any binary data that you want to transport inside XML or JSON - base64 is the way to do it. Don't forget to do the urlEncoding too though. kzbin.info/www/bejne/qp7KfoqNg7eHppI
@sabuein
@sabuein Жыл бұрын
Thank you.
@vipinsharma-zx9cb
@vipinsharma-zx9cb 2 жыл бұрын
awesome
@vipinsharma-zx9cb
@vipinsharma-zx9cb 2 жыл бұрын
Hi Steve, if a file is selected by using HTML file element on my browser and we pass it's blob Url to a "Upload microservice" as a part of formdata or as a querystring . Can we say that we have pushed/uploaded the actual file on server? converting an image to blob Url is same as converting an image to base64?
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 2 жыл бұрын
Either as a blob or as a base-64 string you are uploading a copy of the file. A blob URL is still pointing to binary data. The URL is a string which points to a memory location but the file is still binary. If you convert an image to base-64 it will be much larger. It becomes an actual string. It will be 6-10 times bigger than the binary file and most likely will not fit in a querystring.
@vipinsharma-zx9cb
@vipinsharma-zx9cb 2 жыл бұрын
@@SteveGriffith-Prof3ssorSt3v3 As you mentioned that blob url is still pointing to binary data! But i see many examples in projects..that while uploading a file to server only blob url is send as a param to "upload microservice", also while retrieving the same file.. Service returns only blob URL. I can't see binary data.
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 2 жыл бұрын
@@vipinsharma-zx9cb the binary data is in memory. You won't see it.
Async Iterators for Big Data Sets
10:58
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 3,9 М.
Using FormData Objects Effectively
13:14
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 36 М.
THEY made a RAINBOW M&M 🤩😳 LeoNata family #shorts
00:49
LeoNata Family
Рет қаралды 42 МЛН
ТАМАЕВ УНИЧТОЖИЛ CLS ВЕНГАЛБИ! Конфликт с Ахмедом?!
25:37
Happy 4th of July 😂
00:12
Alyssa's Ways
Рет қаралды 63 МЛН
Scientific Concepts You're Taught in School Which are Actually Wrong
14:36
Custom Events Dispatched from Web Components
20:32
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 1,5 М.
Important differences between textContent and innerText
11:44
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 2,3 М.
Object-Oriented Programming is Embarrassing: 4 Short Examples
28:03
Base64 Encoding Binary Files in Python
12:55
NeuralNine
Рет қаралды 17 М.
WHY IS THE STACK SO FAST?
13:46
Core Dumped
Рет қаралды 142 М.
Base64 Encoding
4:12
schenken
Рет қаралды 127 М.
Generics: The most intimidating TypeScript feature
18:19
Matt Pocock
Рет қаралды 167 М.
Base64 encoding explained
5:12
Security and Privacy Academy
Рет қаралды 3,3 М.