Brad,

I'm just reading the stream file data and writing it into the MIME.  How
do I do a base64 conversion?

Regards,

Gerry Tucker
Senior Analyst Programmer
Technicolor Distribution Services
Wembley, U.K.


-----Original Message-----
From: Brad Stone [mailto:brad@bvstools.com]
Sent: 14 February 2002 17:44
To: midrange-l@midrange.com
Subject: Re: Problems with code pages??


Jerry,

Are you doing an actual base64 conversion of the stream file
data into the MIME, or just changing the header?  The latter
won't do any good.  You need to encode it.

Brad
www.bvstools.com

On Thu, 14 Feb 2002 17:31:56 -0000
 "Tucker Gerry" <Gerry.Tucker@technicolor.com> wrote:
> I've used the QShell jar utility to create a zip file
> which has a code
> page of 819.  If I use the SNDDST command to mail it to
> myself, I can
> open the attachment and extract the contents.  If I look
> at the internet
> header on the mail it includes the following:
>
> Content-Type: application/octet-stream;name=QSYSPRT.ZIP
> Content-Transfer-Encoding: base64
> Content-Description:<QSYSPRT.ZIP>
>
> I've just written a command that uses the QtmmSendMail
> API instead of
> the SNDDST command because I wanted to include multiple
> attachments, cc
> and bcc addresses etc.  It works fine for except for when
> I try to send
> a zip file.
>
> When I am building the MIME file, I open any attachment
> and add the
> contents into the MIME stream, which I'd been using with:
>
> Content-Type: application/octet-stream;
> name="QSYSPRT.ZIP"
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline; filename="QSYSPRT.ZIP"
>
> This works fine for csv, html, txt and pdf attachments
> but zips come
> through as invalid archives.
>
> I tried changing the MIME to the base64 encoding above
> for zips but
> still got invalid archives.
>
> Anyone know what I am doing wrong?  Both the MIME file
> and the zip are
> code page 819.  Has it got anything to do with the way I
> am using the
> open api (as follows)?
>
> Eval      AttHdl     = open( %Addr( FullNam ):
>                         O_RDONLY + O_TEXTDATA )
>
>
>
> Regards,
>
> Gerry Tucker
> Senior Analyst Programmer
> Technicolor Distribution Services
> Wembley, U.K.
> _______________________________________________
> This is the Midrange Systems Technical Discussion
> (MIDRANGE-L) mailing list
> To post a message email: MIDRANGE-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
> or email: MIDRANGE-L-request@midrange.com
> Before posting, please take a moment to review the
> archives
> at http://archive.midrange.com/midrange-l.
>

Bradley V. Stone
BVS.Tools
www.bvstools.com
_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
or email: MIDRANGE-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.