[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Expat & Base64 (Accidentally attached a blank document...)




Thanks Scott I will look into the spaces...  Thats strange I can open it with code400 and WDSC... I just exported the program via WDSC... strange..

Thanks-john

John Major



Scott Klement <sk@xxxxxxxxxxxxxxxx>
Sent by: owner-ftpapi@xxxxxxxxxxxxx

10/12/2005 11:29 AM

Please respond to
ftpapi@xxxxxxxxxxxxx

To
ftpapi@xxxxxxxxxxxxx
cc
Subject
Re: Expat & Base64 (Accidentally attached a blank document...)





Sender: Scott Klement <sk@xxxxxxxxxxxxxxxx>


Since you didn't provide the code in a form that I could install on my
machine, I didn't try your program.  After a brief look at the data, there
are two things that you need to take into consideration:

a) Base64 encoded data needs to be fed into the base64_decode() routine in
even multiples of 4 characters at a time.  You'll need to accumulate your
base64 data until it is an even multiple of 4 bytes.

b) Your base64 encoded data has spaces in it. You'll need to strip those
spaces out before passing it to base64_decode().

---
Scott Klement  http://www.scottklement.com

On Wed, 12 Oct 2005 jmajor@xxxxxxxxxxxxxxx wrote:

> Accidentally sent over a blank test.pdf.... updated with the output of the
> Base64 Decode
>
> I am trying to incorporate the Base64 Decode service pgm that Scott
> created with the Expat FULLELEM pgm Scott Created and I am having
> problems...
>
> Everything seems to be ok however when I open the document off the iSeries
> Adobe can not read it...
>
> I have added code to create a stream file on the IFS for the Start of the
> Elem and Close it at the End.
>
> For the CharData I have added code to call decode with the data and place
> it in the file on the IFS....
>
> I have attached the source for FULLELEM and the PDF that it generates and
> the XML Document ...
>
> Maybe someone can see what I am doing wrong...  Thanks everyone !!!!
>
>
>
>
> John Major
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------