file_utils
          MAXIMUM_JSON_ATTACHMENT_SIZE = 3 * 1024 * 1024
  
  
      module-attribute
  
  The maximum size of an attachment that can be sent using json.
          attach_file_request_builder(file_path)
  Build a request to attach a file.
Attributes:
| Name | Type | Description | 
|---|---|---|
| file_path | The path to the file to attach. | 
Returns:
| Type | Description | 
|---|---|
| CreateAttachmentRequest | A properly-formatted request to attach the file. | 
Source code in nylas/utils/file_utils.py
            | 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |  | 
          encode_stream_to_base64(binary_stream)
  Encode the content of a binary stream to a base64 string.
Attributes:
| Name | Type | Description | 
|---|---|---|
| binary_stream | The binary stream to encode. | 
Returns:
| Type | Description | 
|---|---|
| str | The base64 encoded content of the binary stream. | 
Source code in nylas/utils/file_utils.py
            | 41 42 43 44 45 46 47 48 49 50 51 52 53 |  |