Re: Picking out binary data from html

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Jeremy C. Reed
Date:  
To: plug-discuss
Subject: Re: Picking out binary data from html
On Fri, 13 Aug 2004, Craig White wrote:

> I received an email joke in html with embedded pictures. Viewing the
> source, I see things that look like this...
>
> --103.4cd89516_alt_bound--
>
> --part1_103.4cd89516.2e4d0cd1_rel_boundary
> Content-ID: <>
> Content-Type: image/jpeg; name="BedroomGolf1.jpg"
> Content-Disposition: inline
> Content-Transfer-Encoding: base64
>
> /9j/4AAQSkZJRgABAQEBLAEsAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0a
> HBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIy
>
> <massive snippage>
>
> --part1_103.4cd89516.2e4d0cd1_rel_boundary
>
> Is there a Linux program or method that can pull the images out of this
> binary data?


Use metamail's mmencode (which can also decode with "-u") with -b switch
for base64.


Jeremy C. Reed

                 BSD News, BSD tutorials, BSD links
                http://www.bsdnewsletter.com/


---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss