For Android Beam, you need to provide URIs to the files with the data using setBeamPushUris()
(or setBeamPushUrisCallback()
if the data is not fixed).
For S-Beam, I am not aware of any API that can be used. AFAICT, S-Beam only works with the built-in apps for pictures, video and music.