How would you integrate this into a form component so that the base64 value can be submitted to an API with other form values?