How to Use Base64 in Microsoft Access

  Рет қаралды 1,457

Sean MacKenzie Data Engineering

Sean MacKenzie Data Engineering

Күн бұрын

Пікірлер: 15
@peterhamer504
@peterhamer504 3 ай бұрын
Brilliant! I need exactly this today to encode documents for storage in an SQL database.
@seanmackenziedataengineering
@seanmackenziedataengineering 3 ай бұрын
Cool! That is a good use case for Base64 👍
@gerfer6261
@gerfer6261 Жыл бұрын
Something completely new for me 👀 As mentioned be very useful for crossover platforms
@seanmackenziedataengineering
@seanmackenziedataengineering Жыл бұрын
Definitely!
@happyollyg2
@happyollyg2 Жыл бұрын
How would you use this as part of an update query please? You said it returns a byte array and inferred that's an issue. Are their functions that can handle that conversion to a long string.
@seanmackenziedataengineering
@seanmackenziedataengineering Жыл бұрын
Actually the function returns a string that can be used just about anywhere. Since it does not use special characters, you can use it without worry inside of " or ' characters for SQL update strings or in parameters.. in fact, it will make dynamic SQL much safer from injection because it turns values into scrambled letters to be stored. For example, strValue = "YmFzZTYO" strSQL = "Update tblData Set MyField = '" & strValue & "' Where ID = 57;" CurrentDb.Execute strSQL is much safer than if you allowed the real value where the user might put something else for strValue like: abc';Delete * From tblData; or something else nefarious in there to mess up your database. Of course, parameters are preferred, but in many cases, Base64 will save you from "interpretation" in many contexts. If you insert this way, you can leave it as is and then select it to decode and display to the user. Very handy if there are very specific language considerations or funky input with specific line feeds (windows vs linux) etc.
@kassemaubaid3519
@kassemaubaid3519 Жыл бұрын
Very cool..but when can we use it...I mean in what field can it be used..and how?
@seanmackenziedataengineering
@seanmackenziedataengineering Жыл бұрын
Base64 can be used in any text field, though you'll probably want to choose "Long Text" or "Memo" to store it since it stores data slightly bigger than the input text. This is a great way to store *exact* text or formatting that you don't want changed by systems that view or process it.
@DataisKing
@DataisKing Жыл бұрын
I can see a lot of use cases. I'm starting to use Base64 in Power Automate
@seanmackenziedataengineering
@seanmackenziedataengineering Жыл бұрын
Yeah it is really, really useful. After you use it a few times, the why becomes clear! Power Automate is cool, there must be a built-in function for it hey?
@DataisKing
@DataisKing Жыл бұрын
@@seanmackenziedataengineering Yeah you can use Base64 when creating certain expressions in Power Automate
@pablofelipecipriani
@pablofelipecipriani Жыл бұрын
​Hello @@seanmackenziedataengineering, this function its able to manage image fields from SQL Server to Image Control in Access? i have a frontend in access with a db from SQL server and i need to display images in the fields from this server
@seanmackenziedataengineering
@seanmackenziedataengineering Жыл бұрын
@@pablofelipecipriani yes, it is one way to store and transfer images easily. Or any file actually, not just pictures.
@Kash97h
@Kash97h 3 ай бұрын
can you share these codes?
@seanmackenziedataengineering
@seanmackenziedataengineering 3 ай бұрын
Look for entry 2023-02-07 at mackenziemackenzie.com/downloads
How to Use a File Dialog in MS Access to Allow Users to Pick a File or Folder
9:03
Sean MacKenzie Data Engineering
Рет қаралды 14 М.
How to Use Class Modules in Microsoft Access
26:35
Sean MacKenzie Data Engineering
Рет қаралды 2 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
How to Use Inline Queries in Microsoft Access
14:27
Sean MacKenzie Data Engineering
Рет қаралды 804
SQLModel + FastAPI: Say Goodbye to Repetitive Database Code
19:50
PirateSoftware is right, this needs to stop
15:14
Theo - t3․gg
Рет қаралды 860 М.
How to Use Collections in Microsoft Access VBA
21:35
Sean MacKenzie Data Engineering
Рет қаралды 5 М.
Gitlab DELETING Production Databases | Prime Reacts
17:27
ThePrimeTime
Рет қаралды 362 М.
How is this Website so fast!?
13:39
Wes Bos
Рет қаралды 1,3 МЛН
How to Make a Combination Query in Microsoft Access
21:19
Sean MacKenzie Data Engineering
Рет қаралды 1,2 М.
I made maps that show time instead of space
10:44
Václav Volhejn
Рет қаралды 975 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН