我正在使用C#的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)来自函数response = request.GetResponse() as HttpWebResponse的错误请求;
我将感谢在这个问题上的一些帮助。
发布于 2014-07-14 20:11:38
已将preview_image_urls更改为preview_image_files...现在效果很好。
https://stackoverflow.com/questions/24721826
复制相似问题