예제 #1
0
		public S3Response put(string bucket, string key, S3Content content, HeaderList headers)
		{
			WebRequest webRequest = this.BuildWebRequest("PUT", bucket + "/" + this.EncodeKeyForSignature(key), headers);
			webRequest.ContentLength = (long)content.Bytes.Length;
			Stream requestStream = webRequest.GetRequestStream();
			requestStream.Write(content.Bytes, 0, content.Bytes.Length);
			requestStream.Close();
			return S3Response.Execute(webRequest);
		}
예제 #2
0
파일: S3Adaptor.cs 프로젝트: gabilic/Oplan
        public S3Response put(string bucket, string key, S3Content content, HeaderList headers)
        {
            WebRequest webRequest = this.BuildWebRequest("PUT", bucket + "/" + this.EncodeKeyForSignature(key), headers);

            webRequest.ContentLength = (long)content.Bytes.Length;
            Stream requestStream = webRequest.GetRequestStream();

            requestStream.Write(content.Bytes, 0, content.Bytes.Length);
            requestStream.Close();
            return(S3Response.Execute(webRequest));
        }