Upload local picture via code

Hey there,

I would like to automate the daily upload of pictures from a local folder into a wix database.
What method would you recommend ( post / upload) ? If you have any ressource link, tutorial feel free to share.

Thanks !

Jérôme