GA4

Tuesday, February 26, 2013

Uploading the blob in the Azure Storage

Uploading large size blob in the Azure Storage

string fileName = string.Format("{0}_{1}", DateTime.Now.ToString("yyyy/MM/dd"), FileUpload.FileName);
string blobUrl =Storage.PutBlog(FileUpload.PostedFile.InputStream, fileName);
Stream st = Storage.GetBlog(blobUrl);
st.Position = 0;
byte[] data = new byte[st.Length];
st.Read(data,0,Convert.ToInt32(st.Length));


 

No comments: