Sir,
I am a big Fan of Yours. I am a beginner also. I want to develop a project in Xamarin Android, so that converts an image in ImageView to Byte[] & Vice a Vise in Xamarin Android.
Please Help me.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Mushtaq M ARank #176 · 13.8K reputationPosted Jun 23, 2019, 2:05 AM EDT
Pranjet Solutions39 reputationPosted Jun 24, 2019, 10:37 PM EDT
Mushtaq M ARank #176 · 13.8K reputationPosted Jun 29, 2019, 6:57 AM EDT
Pranjet Solutions39 reputationPosted Jun 30, 2019, 7:27 AM EDT
Mushtaq M ARank #176 · 13.8K reputationPosted Jul 4, 2019, 5:25 PM EDT
Pranjet Solutions39 reputationPosted Jul 21, 2019, 8:21 AM EDT
Bitmap bitmap = BitmapFactory.DecodeResource(getResources(), R.drawable.large_icon);
MemoryStream streamPIC = new MemoryStream();
bitmap.Compress(Bitmap.CompressFormat.Png, 0, stream);
byte[] bytePhoto = streamPIC.ToArray();