How to send image as bytes stream to service?
By using belowcode i am binding the Url as image to image control.how to send it as bytes stream again to service?
please help me…
enter code here
string userimage="http://{ipadress}/sample.jpg";
Uri uri = new Uri(userImage, UriKind.Absolute);
image2.Source = new BitmapImage(uri);
To convert above image to a bytearray you can try:
EDIT:
If the above code doesn’t give the desired results you can try:
You need to include the
Microsoft.Phonenamespace forSaveJpegto work.