我正在使用Ooyala sdk用于c#,并且在上传特定内容的图像时遇到了问题。这是我的代码。我很乐意得到一些帮助:
OoyalaAPI o = new OoyalaAPI(apikey, secretkey);
byte[] bytess = File.ReadAllBytes(@"C:UsersDanielDesktopFIRE2.jpg");
Hashtable booody = new Hashtable();
string exception = "";
object p = o.postBytes("assets/I2ZDlzbjrIFtbAxzrkJ3NLzEDR30jFYh/preview_image_urls", new Dictionary<string, string>(), bytess, out exception, null); //Upload File
booody.Add("type", "uploaded_file");
o.put("assets/I2ZDlzbjrIFtbAxzrkJ3NLzEDR30jFYh/primary_preview_image", new Dictionary<string, string>(), booody, out exception); //Pick The Thumbnail File
从函数response = Request . getresponse()得到的Exception是(400)BadHttpWebResponse;
如果你能帮我解决这个问题,我会很感激的。
preview_image_urls更改为preview_image_files…