AnsweredAssumed Answered

how to encode image in web-script response?

Question asked by wciesiel on Jan 28, 2008
Latest reply on Jan 28, 2008 by davidc
Hi there,

Is there any way to encode image stored within Alfresco in the response rendered by web-script? I'd like to create a script getMyImage receiving alfresco node ID of an image and rendering it in the response (for example in Base64 encoding)…

The use case is such: I have a alfresco-based system within company firewalled network serving (among other purposes) as a content provider for publicly available website. This web-site is a JSF application connecting to alfresco (behind the scenes, on the server-side) via an API created with web-scripts. It's working OK with textual content - but how (if encoding images within webscript response is not OK) can I provide this content to the public application? I'd rather not use RMI nor some SMB-related solutions…