解码base64数据并提取图像 [英] Decoding base64 data and extracting images

查看:144
本文介绍了解码base64数据并提取图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我们在网页上遇到问题。该页面以

base64格式发送一些电子邮件数据。我们需要做的是,将base64数据解码回

原始形状并从中提取附加图像。


任何帮助都会受到高度关注。


谢谢


Rizwan

解决方案

我忘了提,我们正在使用ASP。


再次感谢,


Rizwan


< GR ***** @ gmail.com>在消息中写道

news:11 ********************** @ g49g2000cwa.googlegr oups.com ...

大家好,

我们在网页上遇到了问题。该页面以
base64格式发送一些电子邮件数据。我们需要做的是,将base64数据解码回原始形状并从中提取附加图像。

任何帮助都会受到高度关注。

谢谢

Rizwan




下面是一个VBScript,可以做你想要的但需要base64.exe

来自 http://www.fourmilab.ch/webtools/base64/


您将base63(已编码的)数据复制并粘贴到textarea中然后单击

将其保存到磁盘的解码按钮(作为base64 .enc)然后解码它

(作为base64.dec)。之后你可以将它重命名为

正确扩展名的文件名。


我使用这个变体来查看垃圾邮件中包含的base64文本。我用
使用文本编辑器查看解码后的数据,看它可能有害。

< html>

< head>

< title> base64.hta< / title>

< script type =" text / vbscript">

Option Explicit

子解码()

''*

''*声明常数

''*

Const cHTA =" base64.hta"

Const cDEC =" base64.dec"

Const cENC =" base64.enc"

Const cWSS ="%comspec%/ C base64.exe -d


1


Hello all,

We have a problem on a webpage. That page is sent some email data in
base64 format. what we need to do is, decode the base64 data back to
original shape and extract attached image from it.

Any help will be highly appriciated.

Thanks

Rizwan

解决方案

I forgot to mention, we are using ASP.

Thanks again,

Rizwan


<gR*****@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...

Hello all,

We have a problem on a webpage. That page is sent some email data in
base64 format. what we need to do is, decode the base64 data back to
original shape and extract attached image from it.

Any help will be highly appriciated.

Thanks

Rizwan



Below is a VBScript that does what you want but requires "base64.exe"
from http://www.fourmilab.ch/webtools/base64/

You copy-and-paste the base63 (endoded) data into the textarea then click
the Decode button which saves it to disk (as "base64.enc") then decodes it
(as "base64.dec"). After which you can rename it to a filename with the
correct extension.

I use a variation of this to look at the base64 text included in SPAM. I
use a text editor to view the decoded data to see it it might be harmful.
<html>
<head>
<title>base64.hta</title>
<script type="text/vbscript">
Option Explicit
Sub Decode()
''*
''* Declare Constants
''*
Const cHTA = "base64.hta"
Const cDEC = "base64.dec"
Const cENC = "base64.enc"
Const cWSS = "%comspec% /C base64.exe -d


1


这篇关于解码base64数据并提取图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆