protected void Button7_Click(object sender, EventArgs e) { string bucket = "liuhanlin-work"; string key = "weiaichikuang.mp3"; string savekey = ""; signning si = new signning(); savekey = "saveas/" + si.getEncode(bucket, "12345678.mp3"); string imageurl = "http://liuhanlin-work.qiniudn.com/watermark.jpg"; imageurl = si.getBase64Encode(imageurl); string fops = "avthumb/mp3/wmImage/" + imageurl + "|" + savekey; string notifyURL = "https://33984617651e.a.passageway.io/notifyURL.ashx"; //string notifyURL = "http://baidu.com"; object[] str = new object[6]; str[0] = HttpUtility.UrlEncode(bucket); str[1] = HttpUtility.UrlEncode(key); str[2] = HttpUtility.UrlEncode(fops); str[3] = HttpUtility.UrlEncode(notifyURL); TextBox13.Text = string.Format("bucket={0}&key={1}&fops={2}¬ifyURL={3}&force=1&pipeline=xiaoliu", str[0], str[1], str[2], str[3]); TextBox14.Text = https.http_pfop(TextBox13.Text); }
protected void Button6_Click(object sender, EventArgs e) { string bucket = "liuhanlin-work"; string key = "0161774b-c421-416d-b8e5-8bd9eaabed0a"; string savekey = ""; signning si = new signning(); savekey = "saveas/" + si.getEncode(bucket, "jiequ.mp4"); // string imageurl="http://liuhanlin-work.qiniudn.com/watermark.jpg"; string imageurl = "http://liuhanlin-work.qiniudn.com/-QQ截图20140701114124.png"; System.Text.Encoding encoding = System.Text.Encoding.UTF8; imageurl = Convert.ToBase64String(encoding.GetBytes(imageurl)); imageurl = si.getBase64Encode(imageurl); string fops = "avthumb/mp4/wmImage/" + imageurl + "/seekstart/10/t/5" + "|" + savekey; string notifyURL = "https://3b770121f945.a.passageway.io/notifyURL.ashx"; //string notifyURL = "http://baidu.com"; object[] str = new object[6]; str[0] = HttpUtility.UrlEncode(bucket); str[1] = HttpUtility.UrlEncode(key); str[2] = HttpUtility.UrlEncode(fops); str[3] = HttpUtility.UrlEncode(notifyURL); TextBox11.Text = string.Format("bucket={0}&key={1}&fops={2}¬ifyURL={3}&force=1&pipeline=xiaoliu", str[0], str[1], str[2], str[3]); TextBox12.Text = https.http_pfop(TextBox11.Text); }