Kbase 13660: How to ENCODE and DECODE binary files with uuencode uudecode
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/05/1998 |
|
How to ENCODE and DECODE binary files with uuencode uudecode
The following steps outline a method that can be used to
take a binary file , encode it and mail it over the
internet.
Steps to Tar/Compress and ENCODE a file
-----------------------------------------
1. Create a tar file 'foo.tar' containing the file 'foo.out'.
# tar -cf foo.tar foo.out
2. Compress the tar file 'foo.tar' to create a compressed
version 'foo.tar.Z'.
# compress foo.tar.Z
3. Encode the tar file 'foo.tar.Z' to ASCII format with the
label 'foo.tar.Z' and redirect output to 'foo.new' with
the uuencode utility.
# uuencode foo.tar.Z foo.tar.Z > foo.new
4. Include 'foo.new' in your mail messsage and attach the
information below.
Steps to DECODE /Uncompress and Tar file.
----------------------------------------
1. Decode the ASCII file 'foo.new' with the uudecode
utility.
# uudecode foo.new
2. Uncompress the file 'foo.tar.Z' to create 'foo.tar'.
# uncompress foo.tar.Z
3. De-Tar the file 'foo.out' from the tar file 'foo.tar'
# tar -xvf foo.tar
Progress Software Technical Support Note # 13660