AnsweredAssumed Answered

Reading content in base64

Question asked by drfie on Apr 22, 2011
Hi,
is there any possibility to read content in base64 encoding? I mean reading the content through the web services interface? I have found that it is possible for writing.
Or do I have to use something like what is in /java/org/alfresco/webservice/util/ContentUtils.java::getContentAsString?
Like
content_client = Client( alfresco_content_wsdl, wsse=security )
content = content_client.service.read( pred,
        '{http://www.alfresco.org/model/content/1.0}content' )
url = content[0].url + "?ticket=" + session.ticket
req = urllib2.Request(url)
handle = urllib2.urlopen(req)
data = handle.read()
This works for me but I am afraid of some possible future authentication issues - urllib2 is a python library that is unaware of alfresco. Is the session ticket (and the URL of course) really all that is needed to download the data?

Outcomes