The base64-encoded content of `path_or_fileobj` Returns: `bytes`
(self)
| 533 | self.path_or_fileobj.seek(prev_pos, 0) |
| 534 | |
| 535 | def b64content(self) -> bytes: |
| 536 | """ |
| 537 | The base64-encoded content of `path_or_fileobj` |
| 538 | |
| 539 | Returns: `bytes` |
| 540 | """ |
| 541 | with self.as_file() as file: |
| 542 | return base64.b64encode(file.read()) |
| 543 | |
| 544 | @property |
| 545 | def _local_oid(self) -> Optional[str]: |