Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string linkParaDisponibilizar = "~/GetFileContent.fwk?Id=" + oFileMetaData.Id;
- 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.Pesef.Txts", ms);
- linkParaDisponibilizar = "~/GetFileContent.fwk?Id=" + oFileMetaData.Id;
- }
- // no final desse código, linkParaDisponibilizar será o link para o arquivo TXT
- string linkParaDisponibilizar = "~/GetFileContent.fwk?Id=" + oFileMetaData.Id;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement