| How to Encode / Decode a File |
| UNIX / Linux - General UNIX |
| Wednesday, 06 January 2010 16:55 |
|
What is encoding / decoding ? Encoding refers to the process of translating a file into an ASCII based string. Why would I want to do this ? This is useful for situations were you need to transfer binary files across systems that have no network connectivity. Other applications were this is used is with SMTP which being a completely ASCII based protocol uses encoding to send any binary or not ASCII based data to the recipient. Example Below we will be encoding and decoding a floppy disc image. 1. On the first machine we will be encoding the file into an ASCII based string. [root@host1 tmp]# file vmscsi-1.2.0.4.flp 2. Once we have copy and pasted the ASCII text to the other machine (into the file vmscsi-1.2.0.4.flp.encoded) we decode the file back into its original floppy image format. [root@host2 tmp]# cat vmscsi-1.2.0.4.flp.encoded | base64 -di > vmscsi-1.2.0.4.flp.decoded |
Latest Articles
- Tool - SSLReport
- Brocade ADX - How to perform an image upgrade
- Cisco ASA reboots/crashes when running the command 'show service-policy interface outside set connection detail'
- Brocade ADX - Persistence
- How to define a port range on a Juniper SRX
- Path MTU Discovery (PMTUD) / Path MTU Black Holes
- Mitigating DoS attacks on a Cisco ASA
- How do I clear the Cisco ASA connection counters ?
- High CPU Usage on a Cisco CSS
- How to clone a MySQL database
- Brocade ADX - Configuring SSL
- Brocade ADX - Content Switching Rewrite
- Joomla - How to add a custom field
- BigIP F5 LTM - How to Create a Sorry Page with Image
- BigIP F5 LTM - TCP Syslog
- Cisco ASA - Traffic blocked when TCP syslog server is unreachable
- Excel - Unable to open file
- Brocade ADX - DoS Protection
- Brocade ADX - LoadBalancing Methods
- Brocade ADX - Healthcheck Elements
Popular
- Proxy ARP – SPLAT
- Check Point Commands
- IPSO - Commands
- ASA 8.3 - How to configure NAT
- vSphere - Creating User and Group Permissions
- PEMU - Free Cisco PIX Firewall Emulator / Simulator
- Juniper Netscreen Commands
- Juniper - NAT Explained
- Configuring Wireless Connectivity within Backtrack 4 r2
- ESX Convertor - The session is not authenticated
- How do I install snmpwalk / snmpget using Yum ?
- Netscreen - NSRP
- ESX - ViClient Cannot connect to host
- Troubleshooting a Netscreen Site 2 Site VPN
- Endpoint Connect Installation / Troubleshooting Guide
- ESXi - Connecting to a named pipe
- Check Point - How to Reset SIC
- ESXi White Box - HP DL140
- DNS / nslookup - How to find the root servers ?
- Netscreen - Routing Basics / Virtual Routers / PBR
