我正在尝试将文档保存在保管箱中,我已将文档保存在设备上。以及将UIImage保存在我的应用程序的保管箱中。
DBError error;
string ruta = Environment.GetFolderPath (Environment.SpecialFolder.Personal);
string rutaarchivo = Path.Combine(ruta,"Geodesia.xml");
DBPath newPath = DBPath.Root.ChildPath(rutaarchivo);
DBFile archivo = DBFilesystem.SharedFilesystem.CreateFile (newPath,out error);
我使用此代码,但仅创建文件,有人帮助我?
根据Dropbox API文档,CreateFile
仅打开文件。您将需要使用将其他文件的内容复制到该文件中WriteContentsOfFile
。
例如:
archivo.WriteContentsOfFile(rutaarchivo, false);
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句