Your last option is what would be considered best practice. Set the headers
correctly and return the content of the binary as your response.
On Wed, May 11, 2011 at 11:24 AM, David Buchmann david.buchm...@liip.chwrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
hi,
i have binary content
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
hi,
i have binary content that i have to deliver to the client. what is the
right way to do it? i found two solutions, but neither seems really good.
//in my controller, i get a binary stream (its stored in the database)
$picture =