 Okay, again, this is part of a series for sure check out the full playlist there should be a link in the description of the video and What we're going to do today is we're going to continue what we're working with Which is a program called mini modem which we are using to transmit data on our main goal of our project is to transmit text But can you send binary files such as an image using this technique? And yes, there is a way you can do that at least a way I came up with there might be other ways as well But you may be familiar with base 64 base 64 is a way of encoding files That can take binary files any file you have and convert it to plain text and then it can convert it back again This is very common. If you ever look at the attachments of an email, they're probably in base 64 You can also embed base 64 images and sound files into a web page web browsers decode base 64 for you But on our shell here, I'm using Debbie and Linux. We have a program called base 64 Which does this for us which I also believe is part of busybox So you can get this running on pretty much any Linux device whether it be a router or modem or your phone But basically what I have to do is I have an image in here If I list out my files called IMG.jpeg and if I say base 64 and give it that file name what's going to do is going to generate a bunch of text for us Which represent that file it's in encoding that file as text And so what we can do is we can take that and pipe it into mini modem and say to transmit it And again, we're going to go at a high speed here of 1200 Dash f for a file and we can create a wave file that we will call Image.wave or IMG.wave. I'll go ahead and hit enter and we're gonna generate that in our last code We had a small file because we had 30 lines of text. Well, we have quite a bit more now It's a very low resolution image but if I was to list out my files now you can see that our image wave is 26 megabytes where the actual image is 25 kilobytes so a lot of text converted into tones takes a lot of space It would take a very long time to to transmit this again 1200 a rate of 1200. It's probably too fast for you to reliably send it over radio waves and And if you miss one character in a case like this It's it's it's not going to decode properly You need every single character properly transmitted but have a wave file like this you can then send it to somebody and it's It's not a secure way to do stuff. It's not like it's encrypting it It's just encoding it so anyone can decode it, but you can have fun sending files back and forth to people like this so Now we have a wave file. I can play out MSGS from last video IMG wave And I'll kill that there Four minutes almost five minutes to send a very low-resolution image. That's like 340 pixels by 220 or something like that so Again not very practical, but it can be done and this could come in useful for you under certain circumstances But there you go you have it converted so how do you convert it back? Well again, we'll use mini modem and this time we'll say that we're receiving at 1200 and we're going to give it the file of MSG if we hit enter right away. Oh, not MSG. Sorry. That's again last video IMG got wave It's going to give us the base 64 outputs All you have to do is take that output and pipe it into base 64. So we'll say base 64 and we're gonna say dash D for decode and If we enter now, it's going to give us the binary image output So of course we want to put that into a file so already do is pipe that into a file We'll call it IMG dot jpeg and we will go ahead and Actually, we'll just call it Image dot jpeg even though the other ones capital up anyway I don't want to files name the same even if the they're different so Now I can list out and you can see here This is our original. This is our after encoding and decoding it. You can see it's the same file size I can say file and that name and it will tell me that is a jpeg file So it decoded it properly and right here. It's a it's a 340 by 227 image So not very big at all I'm not going to show you the image if you want to see that image you can go to the github page There's link in the description to this project and I am going to remove the images from the project now But I'll leave the wave file so you can pull down that wave file and decode it if you want to see what the picture is and I do thank you for watching as always. Please visit my web page films by Chris calm That's Chris the K there's a link in the description there You can search through all my videos as well as go to a support section where you can support me through either Patreon or PayPal and truly if you like my videos be sure to subscribe But like and comment and please share them the more views I get the better I thank you for watching and as always. I hope that you have a great day