(self, fileobj)
| 56 | return base64.b64encode(bs).decode("ascii") |
| 57 | |
| 58 | def _handle_fileobj(self, fileobj): |
| 59 | start_position = fileobj.tell() |
| 60 | for chunk in iter(lambda: fileobj.read(self._CHUNK_SIZE), b""): |
| 61 | self.update(chunk) |
| 62 | fileobj.seek(start_position) |
| 63 | |
| 64 | def handle(self, body): |
| 65 | if isinstance(body, (bytes, bytearray)): |