Disclosed herein is an approach for coating a biocompatible material, in particular chitosan, onto a surface in need thereof. This approach results in a coating that is highly uniform, even on irregular surfaces, and enables ready adjustment of the morphology of the coated material. A convenient means to add a functional property to the biocompatible material by incorporation of functional additives is also provided.