Upload files with vbNET
I want to upload a little txt file from my local Pc to Box folder, I trie to use the documentation, but I can not to get.
I used this:
BoxFile newFile; // Create request object with name and parent folder the file should be uploaded to using (FileStream stream = new FileStream(@"C:\\example.pdf", FileMode.Open)) { BoxFileRequest req = new BoxFileRequest() { Name = "example.pdf", Parent = new BoxRequestEntity() { Id = "0" } }; newFile = await client.FilesManager.UploadAsync(req, stream); }
but I am not sure to get the same in VBNET
サインインしてコメントを残してください。
コメント
0件のコメント