My Mit app crashes when I select a image from my mobile gallery

after pick image, you have lots of codes. You can disable some then try again, to find out which one caused the crashing.

ImageToBase64 accepts image path, but you are providing image component.