I am using content files to drive documentation about products in a lightning community.
I've researched the ContentDocument and ContentVersion documentation but I am unable to figure how to get either the base64 value of the document, or the direct download url. Pasting the URL in the browser renders XML that says invalid session.
On ContentVersion there is a VersionData field that says its the base64 value of the content, but querying for it only returns a URL.
I've also followed this tutorial on displaying content files on a visual force page but, but it just takes you to the record page and not the document.
Has someone implemented something similar?