0
我對C#使用Ooyala sdk,並且在上傳特定內容的圖像時遇到了問題。這是我的代碼。會很樂意得到一些幫助:上傳Ooyala上的預覽圖問題
OoyalaAPI o = new OoyalaAPI(apikey, secretkey);
byte[] bytess = File.ReadAllBytes(@"C:\Users\Daniel\Desktop\FIRE2.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
的例外,我得到的是(400)從功能響應= request.GetResponse() 作爲HttpWebResponse錯誤的請求;
我將不勝感激這個問題的一些幫助。