Re: PDF encoded
| From: | Micah Stevens | Date: | Tue, 12 Jul 2005 16:17:04 +0000 |
| Subject: | Re: PDF encoded | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-39933@lists.php.net to get a copy of this message | ||
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@hotmail.com]
> Sent: Tuesday, July 12, 2005 3:06 PM
> To: shekhar@rootinfotek.com; php-db@lists.php.net
> Subject: RE: [PHP-DB] PDF encoded
>
> http://ca3.php.net/manual/en/function.base64-decode.php
>
> bastien
>
> >From: "Shekhar Juneja" <shekhar@rootinfotek.com>
> >To: <php-db@lists.php.net>
> >Subject: [PHP-DB] 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