internal void Insert(Foto_MD md)
        {
            SQLiteConnection connInsert = Conexao.GetConn();

            connInsert.BeginTransaction();
            connInsert.Insert(md);
            connInsert.Commit();
            connInsert.Close();
        }
        private async void CameraButton_Clicked(object sender, EventArgs e)
        {
            var md = new Foto_MD();

            var photo = await CrossMedia.Current.TakePhotoAsync(new Plugin.Media.Abstractions.StoreCameraMediaOptions()
            {
                Name               = "test.jpg",
                Directory          = "myDir",
                SaveToAlbum        = true,
                CompressionQuality = 50,
            });

            md.ExternalPath = photo.AlbumPath;
            md.InternalPath = photo.Path;
            md.Foto         = photo.GetStream().ToByteArray();

            bl.Insert(md);

            AtualizaFotos(md);
        }
 private void AtualizaFotos(Foto_MD md)
 {
     this.externalImg.Source = md.ExternalPath;
     this.internalImg.Source = md.InternalPath;
     this.bancoImg.Source    = md.Foto.ToImageSource();
 }