I am trying to copy all files from a doc lib to another doc lib in another web application, that can be across environments for example DL in SP2010 to DL in SP2013. So I am limited to use Client Object Model to copy files. I am successfully able to copy files but in my requirement , I need to copy all versions as well. Unfortunately I realize, FileVersion object in CSOM, does not have a OpenBinary()
method (in server OM, you can use SPFileVersion.OpenBinary()
)
Does anyone have any idea on how this can be achieved or any work around.