g****d 发帖数: 3461 | 1
save the attachment to a file
(the stuff after the last empty line
to the end of file, you may see one or
two "=" signs at the end of the file
if the length of the file is not dividable
by 3). At a shell prompt, do "mmencode -u -b saved_file > xing.jpg".
Then you have your jpeg image.
If this is not exciting enough,
you can find the base64 3 -> 4 byte
alphabet and write a conversion probram
yourself. :-)
I guess these instructions are pretty much useless
because the command is unix specific.
M | g****d 发帖数: 3461 | 2
mmencode is a mime encoder(I just noticed mm means something
different here.) "-u" tells it to work in decoding mode.
'-b' tells it the input file is in base64(-p means quoted
printable, but that's the default coding method.)
"> xing.jpg" redirects the stardard output to file xing.jpg. |
|