also support buffer file save on local provider