i'm not sure if the title is understandable or not. But all i want to ask is, i want to upload a jpeg file from my WindowsPhone 8 client app. to a WCF web service. But i dont want direct upload, i want to handle the stream.So i wrote a script for reading image. Here it is:`
byte[] buffer = new byte[32*1024];
int read;
using (MemoryStream ms=new MemoryStream())
{
while ((read = Fs.Read(buffer, 0, buffer.Length)) > 0)
{
ms.Write(buffer, 0, read);
}
}`
Fs is myImage's reader.( FileStream Fs = new FileStream("FİLE", FileMode.Open, FileAccess.Read); ) For now everthing seems ok. But while i'm reading the image file i want to upload byte array of it. And server-side Wcf service will join the array and after joining i'll push it to my Azure Storage account(blob). You can say: You dont need to this. Use Phone.Storage and push it to your blob. But i want to show progressing level of uploading.
ms.Write(buffer, 0, read);
after this , Wcf method have to work but how? How can i handle this situation? if it is possible and want to write this Wcf with async methods.
Thanks for your answers and sorry about my bad expression.