I am using Gmail API on Android and I have a problem for file attachment.
I followed example below: https://developers.google.com/gmail/api/guides/sending#creating_messages_with_attachments
and the problem is arisen here:
String encodedEmail = Base64.encodeBase64URLSafeString(bytes.toByteArray());
I want to attach a video file about 8MB, but this line shows 'out of memory' error.
It is okay when I send image file attachment. (Typically below 1MB).
How can I deal with it?