I wrote some simple REST service that get Stream from client.
This Stream is an image that the client sent.
Now i need to translate the Stream back to Image.
How can i do it ?
The method that i wrote:
public bool AnalyzingPicture( Stream image )
{
if( image == null )
{
// Is it write to write this down ?
throw new ArgumentNullException( "Error" );
}
else
{
// I need here to make the image translate ...
}
}
have a look here: http://msdn.microsoft.com/en-us/library/1kcb3wy4.aspx
you can than easily save it to a file:
or to a byte[]: