cancel
Showing results for 
Search instead for 
Did you mean: 

add a binary file to Alfresco via java

ilcario
Champ in-the-making
Champ in-the-making
Hi all,

Is it possible create a java class that add a binary file (for ex. a tiff files) to Alfresco?

I want call this class through a Content rules, the rule execute a script that lunch my java class (this class make  some transformation …).
The script should pass to the class only one arguments the document.content

ciao
massimo
1 REPLY 1

kevinr
Star Contributor
Star Contributor
Yes if you code your Java class as a Repository Action (see the wiki) then it can be launched by JavaScript - see the JavaScript wiki page for info on launching actions. You can pass parameters to them no problem.

Thanks,

Kevin