How to Use Base64 in Microsoft Access
ฝัง
- เผยแพร่เมื่อ 5 ก.ย. 2024
- In this episode, we're going to take a look at how to encode your data with Base64 so that it will be safe from being distinguished, interpreted, or accidentally changed by other operating systems and environments. Base64 is super useful because it can encode and safely encode all kinds of digital information, including text and pictures. Because it translates all information into 64 "safe" characters, things like angle brackets and other special characters can be stored and reviewed safely. Let's go!
Related Videos:
How to Use a File Dialog in MS Access to Allow Users to Pick a File or Folder
• How to Use a File Dial...
How to Write a Custom Text File Using MS Access VBA
• How to Write a Custom ...
How to Integrate Machine Learning into Microsoft Access Applications
• How to Integrate Machi...
How to Use Base64 in Microsoft Access
You are watching this video now!
How to Use Sleep to Pause VBA in MS Access
• How to Use Sleep to Pa...
How to Open Excel from Access Using VBA
• How to Open Excel from...
How to Use vbScript to Open and Work with Data in Access accdb Files - Late Binding Example
• How to Use vbScript to...
Join me on Patreon!
/ mackenziedataengineering
Demo of my BZ RDP Cloaker:
www.patreon.co...
Check out some tech (and support my channel!):
www.amazon.ca/...
Want the code from this video?
mackenziemacken...
Interested in transforming your career or finding your next gig?
system.billzon...
Want my team to do a project for you? Let's get to it!
system.billzon...
Contact form you can find at www.mackenziema...
Follow me on social media:
/ mackenziedataanalytics
/ seamacke
/ seamacke
/ seamacke
/ psmackenzie
Get Microsoft Office including Access:
click.linksyne...
Got a TH-cam Channel? I use TubeBuddy, it is awesome. Give it a try:
www.tubebuddy....
#msaccess #vba
Something completely new for me 👀
As mentioned be very useful for crossover platforms
Definitely!
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.
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.
Very cool..but when can we use it...I mean in what field can it be used..and how?
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.
I can see a lot of use cases. I'm starting to use Base64 in Power Automate
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?
@@seanmackenziedataengineering Yeah you can use Base64 when creating certain expressions in Power Automate
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
@@pablofelipecipriani yes, it is one way to store and transfer images easily. Or any file actually, not just pictures.