2

如何通过提供其 url 将图像上传到服务器。我尝试过,但它不起作用。

    private void OnPhotoChooserTaskCompleted(object sender, PhotoResult e)
    {
        if (e.TaskResult == TaskResult.OK)
        {

            WebClient wc = new WebClient();
            Uri u = new Uri("url here");

            wc.OpenWriteAsync(u, "POST", e.OriginalFileName);

        }
    }
4

0 回答 0