Re: base64binary
"Jean-Pierre Radley" <jpr@jpr.com> wrote in message
news:20040607183420.GA10593@jpradley.jpr.com...
> corrlens typed (on Mon, Jun 07, 2004 at 05:59:02PM +0000):
> | Do you know of unix command that will convert a jpg file into
base64binary
> | format ?
> |
>
> I have a base64 command here, can't reacll its provenance at the moment.
>
> But why do you need to do this?
> If it's to mail the JPEG, then mutt can do this, and scomail probably can
> too.
>
> --
I need to include a JPG file in a XML transmission.
Here's the encoded sample image:
<Images>
<Image>
<MaintenanceType>A</MaintenanceType>
<Style>ZZ1</Style>
<FileType>JPG</FileType>
<FileSize>55</FileSize>
<FileSizeUOM>KB</FileSizeUOM>
<DPI>72</DPI>
<ColorMode>RGB</ColorMode>
<Background>WHI</Background>
<OrientationView>FRO</OrientationView>
<ImageFile>/9j/4AAQSkZJRgABAgEBLAEsAAD/7QGEUGhvdG9zaG9wIDMuMAA4QklNA+0AAAAAA
BABLAAAAAEA
AQEsAAAAAQABOEJJTQQNAAAAAAAEAAAAeDhCSU0D8wAAAAAACA AAAAAAAAAAOEJJTQQKAAAAAAAB
AAA4QklNJxAAAAAAAAoAAQAAAAAAAAACOEJJTQP1AAAAAABIAC 9mZgABAGxmZgAGAAAAAAABAC9m
ZgABAKGZmgAGAAAAAAABADIAAAABAFoAAAAGAAAAAAABADUAAA ABAC0AAAAGAAAAAAABOEJJTQP4
....etc
</ImageFile>
</Image>
</Images>
<LifeCycleStatusCode>0</LifeCycleStatusCode>
<ManufacturerCode>Str</ManufacturerCode>
</Item>
</Items>
<Trailer>
<ItemCount>1</ItemCount>
<TransactionDate>1967-08-13</TransactionDate>
</Trailer>
</PartInformation> |