Tyler Southwick wrote:
I need to be able to display binary data from a database as an image and i'm not sure the best way to do this. i've been trying to figure out how to change the mime type of a component and then have the component just write out the image data. I can see how to change the mime type of a page, but not a component. Is this even possible?
I don't think that a component can change the mime time... It's generally cleaner to create a custom service that accepts parameters, generates the (binary) content and returns it. Just extend from AbstractService, override service(IEngineServiceView engine, IRequestCycle cycle, ResponseOutputStream output) and write the data to the output object. Then you can use ServiceLinks to link to the data.
I'm pretty new to tapestry and thanks for all the help!
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
