Re: [symfony-users] [symfony2] which is the correct way to deliver binary content?

2011-05-30 Thread Gareth McCumskey
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

[symfony-users] [symfony2] which is the correct way to deliver binary content?

2011-05-11 Thread David Buchmann
-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 =