avatar
Re: 还是没搞定MIME# Software - 软件世界
g*d
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
avatar
g*d
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.
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。