cancel
Showing results for 
Search instead for 
Did you mean: 

how to encode image in web-script response?

wciesiel
Champ in-the-making
Champ in-the-making
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…
1 REPLY 1

davidc
Star Contributor
Star Contributor
See http://wiki.alfresco.com/wiki/HTTP_API_Reference#Content_Retrieval - there's a built-in web script for retrieving content out of the repository.