09-24-2019 06:22 AM
Hi, I'm new to Alfresco. I have a simple report generation using jasper and that document(pdf) is currently save to "public" folder in my project. My task is to save my report to alfresco document manager.
I'm using alfresco 6.1.
Can someone please guide me on this. I read several blogs and i dont have a clear idea on how to do above task.
Thank you.
09-27-2019 10:32 AM
I'm a bit surprised almost all replies propose an upload through CMIS here. (Only @jpotts shortly mentions the possibility to use the REST API.)
Isn't Alfresco promoting the public REST API as primary integration point?
For reference: Alfresco's REST API which could also be used to perform the upload of your document:
https://api-explorer.alfresco.com/api-explorer/#/nodes
09-27-2019 12:20 PM
I suspect the replies propose using CMIS because it is easier in this case. You are already in Java. OpenCMIS gives you a nice library to work with Java objects. Why go to the trouble of using the REST API? Plus, the OP wants to create documents, which is right in the CMIS wheelhouse.
Alfresco is promoting the use of the REST API primarily from remote, non-Java clients, such as a JavaScript front-end.
Either way you choose it doesn't matter--the nice thing is that developer's have options. Use what comes natural for you and the project.
Explore our Alfresco products with the links below. Use labels to filter content by product module.