Looks like you're telling the browser that the data is base64, and then decoding the data before you send it. Try sending the string without the base64_decode() statement. just echo $string Or, lose the transfer encoding header, and leave the base64_decode() in.. -Micah On Tuesday 12 July 2005 7:56 am, Shekhar Juneja wrote: > Hi Bastien. > > Snippet of my code is > > header('Content-type: application/pdf'); > header(" Content-Disposition: inline"); > header('Content-Transfer-Encoding: base64'); > echo echo base64_decode€($String); > > Where > $string contains the encoded string. > > Don’t know where I am going wrong. > > Regards > Shekhar > > > -----Original Message----- > From: Bastien Koert [mailto:bastien_k@xxxxxxxxxxx] > Sent: Tuesday, July 12, 2005 3:06 PM > To: shekhar@xxxxxxxxxxxxxxx; php-db@xxxxxxxxxxxxx > Subject: RE: PDF encoded > > http://ca3.php.net/manual/en/function.base64-decode.php > > bastien > > >From: "Shekhar Juneja" <shekhar@xxxxxxxxxxxxxxx> > >To: <php-db@xxxxxxxxxxxxx> > >Subject: PDF encoded > >Date: Tue, 12 Jul 2005 14:30:32 +0100 > > > >Hi , > > > >I am trying to figure out a way how to display base64 encoded string. > >Basically I am getting base64 encoded string back a webservise, I was > >to display this PDF inlined in the browser. But instead its printing > >the encoded string in the browser. > > > >request help on this:) > > > >Warm regards > >Shekhar > > -- > PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: > http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php