Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string IDNoStorage;
- using (var ms = new MemoryStream())
- {
- TextWriter tw = new StreamWriter(ms);
- tw.Write("blabla");
- tw.Flush();
- ms.Position = 0;
- string nomeArquivoTxt = "itensDaEdicao" + DateTime.Now.ToShortDateString() + ".txt";
- FileMetadata oFileMetaData = StorageManager.StoreFile(nomeArquivoTxt, "Sat.Dtec.Ferramentas", ms);
- IDNoStorage = oFileMetaData.Id;
- }
- // no final desse código, IDNoStorage será o ID no Storage
Add Comment
Please, Sign In to add comment