How to insert resources in the SQ webserver/database

I write custom SQ plugins. I wish to reader resources (json, png, etc) through the SQ web interface. Is there a way to insert json or binary resources in raw mode (or Base64 convert) via the plugin inside the SQ database, and a way to extract it via the webapi ?
If possible a simple example is welcome !
Thanks for your help.
PS : up to now, I use an uggly work-arround : copy the ressources in the source code directory. It works but corrupts the quality counters of course.

Hi SonarSource !

Any help on this topic ? Help is welcome of course !