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
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.