T.R | Title | User | Personal Name | Date | Lines |
---|
582.1 | | CASEE::VANDENHEUVEL | Hein, Valbonne. | Fri Oct 16 1987 05:26 | 15 |
| What problem exactly are you trying to solve? Surely you
don't ask this just for the fun of it right? Knowing the
underlying problem someone might be able to suggest a
better solution. I can only assume you need this to transfer
a binary file over a simplistic carrier that only supports
ascii numbers? Did you check alternative transmit methods?
Different options?
If I were to make this, and if I had to support various
file organization, then I would check out Martin Minows
COMPRESS/EXPANDS tool from the toolshed, rip out the
compression itself and replace it be OTS$CVT routines to
do the BINARY - HEX translations.
Cheerio,
Hein.
|
582.2 | | ILO::LENIHAN | John Lenihan 353-91-25128 | Fri Oct 16 1987 07:29 | 5 |
| Thanks..
I will see what I can do with the COMPRESS/EXPAND utility.
� J.
|
582.3 | Here's how | MAY20::MINOW | Je suis marxiste, tendance Groucho | Fri Oct 16 1987 11:27 | 28 |
| The best solution I've found is as follows:
1. Use LZCOMP to compress the file (only if it's a large file or you
need to preserve the attributes for a VMS-VMS copy). LZCOMP
is available from the toolshed.
2. Use BTOA.C to convert the binary file into a "mailable" text file.
BTOA also computes some checksums.
3. Copy the file to the remote system.
4. Use ATOB.C to convert the text file to its correct form.
5. If necessary, use LZDCMP to decompress the file.
Sources to all of the above are availabe in BOLT::DECUSC$LIBRARY:[TOOLS]:
LZ*.* LZCOMP and LZDCMP
ATOB.C
BTOA.C
Note: If you are copying from VMS to Unix, make sure you set the
"export" option on LZCOMP. LZDCMP can be run on Unix, or you can
use Unix compress.
For text files, the combination of LZCOMP followed by BTOA is usually
slightly smaller than the original file.
Martin.
|
582.4 | bingo! | ILO::LENIHAN | John Lenihan 353-91-25128 | Fri Oct 16 1987 12:41 | 6 |
| re: .-1
Thanks Martin..
This was precisely the information I was looking for
� j.
|