RE: [PHP-DB] PDF encoded
| From: | Shekhar Juneja | Date: | Tue, 12 Jul 2005 16:39:29 +0000 |
| Subject: | RE: [PHP-DB] PDF encoded | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-39935@lists.php.net to get a copy of this message | ||
Tried both ways :(
-----Original Message-----
From: Micah Stevens [mailto:micah@raincross-tech.com]
Sent: Tuesday, July 12, 2005 5:17 PM
To: php-db@lists.php.net
Subject: Re: [PHP-DB] PDF encoded
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
--
PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php