Re: Display raw image - given byte[]?
Daniel Dekany <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Tuesday, October 13, 2009, 9:29:47 PM, Mathew Rowley wrote: > I have an interface that returns an image in the form ‘byte[]’. Is > it possible to create a ftl that “writes” that image out to the user > – setting the header to image/png, etc? Thanks. Nope... FreeMarker has no control over the MIME-type or over the output charset (which should be ISO-8859-1 if you want to keep the bits); the embedding framework has. Even then, it would be quite inefficient due to FreeMarker uses 16 bit char-s (UNICODE) internally. Last not least, it would be a miss-use of FreeMarker. > MAT -- Best regards, Daniel Dekany ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ FreeMarker-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freemarker-user