I am trying to send an image from an Android client to the C # server but when I received the bytes on the server side , So I get it in several bytes so I have to add arrays in an array. So I use it:
byte [] _image = append (byteArrayIn); Memorystream ms = new memorystream (_image); Ms.osition = 0; Bitmap backmage = new bitmap (MS, true); Picturebox 1 Hight = return image. height; PictureBox1.Width = Return Image. Wide; Return return revenues;
And then:
Bitmap image = bytereoises (Myabytes); PictureBox1.Image = Image;
But when it displays the image, it shows only half as if some data was lost during the process. It gives me this
I resolved my problem in the end. There was a problem because the operation was in thread and the picture can not be fully processed before displaying.
No comments:
Post a Comment