curl -H ’Authorization: Bearer 1-N’ -D - -k \ -F "image[]=@Freddie_Mercury.jpg;type=image/jpeg" \ http://localhost:8080/v1/auction-lot/1-1CM/image; echo HTTP/1.1 100 Continue
imageBytes = webClient.DownloadData(Freddie_Mercury.jpg); var client = new WebClient(); client.Headers[HttpRequestHeader.ContentType] = "application/x-www-form-urlencoded"; Dictionary<string, string> value = new Dictionary<string,string>(); value.Add("image[]", Convert.ToBase64String(imageBytes)); System.Net.Http.FormUrlEncodedContent test = new System.Net.Http.FormUrlEncodedContent(value); resp = client.UploadString(url,test.ToString());
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)