Click here to Skip to main content
15,917,005 members

Comments by _Satya_ (Top 7 by date)

_Satya_ 24-Feb-14 8:14am View    
Sorry AnvilRanger. I did not get you. If you don't mind can you explain it briefly? Please post any URL's regarding this. So that i can understand it in better way. Thanks
_Satya_ 19-Sep-13 8:08am View    
Here i am unable to get the parameters like imagename,extension etc... While i am passing parameters as in uritemplate it is giving run time error.
Error:
For request in operation RecieveImage to be a stream the operation must have a single parameter whose type is Stream.

but it is perfectly working if i can pass only stream as single password.
_Satya_ 16-Sep-13 8:50am View    
Error:
For request in operation RecieveImage to be a stream the operation must have a single parameter whose type is Stream.
_Satya_ 16-Sep-13 8:03am View    
No dude.. if i change that 500000 to 100000 then it is taking 10kb only. The problem was solved my self.
here i have wrote my code....

public string RecieveImage(Stream ImageStream)
FileStream fileToupload = new FileStream(@"C:\desktop\wcfUploadImage.jpeg", FileMode.OpenOrCreate);
byte[] bytearray = new byte[5242880];
int bytesRead, totalBytesRead = 0;
do
{
bytesRead = ImageStream.Read(bytearray, 0, bytearray.Length);
totalBytesRead += bytesRead;
} while (bytesRead > 0);

fileToupload.Write(bytearray, 0, totalBytesRead);
fileToupload.Close();
fileToupload.Dispose();
}
_Satya_ 6-Sep-13 2:13am View    
I can not use the class test in my client side( here i am using Mobile client). He can send post the data with the below data as input :
Input:
{"Strproperty":"hai", "Strproperty2":"balu"}