diff --git a/mapadroid/data_handler/mitm_data/holder/latest_mitm_data/LatestMitmDataEntry.py b/mapadroid/data_handler/mitm_data/holder/latest_mitm_data/LatestMitmDataEntry.py index c343f07a4..6ad9f4e44 100644 --- a/mapadroid/data_handler/mitm_data/holder/latest_mitm_data/LatestMitmDataEntry.py +++ b/mapadroid/data_handler/mitm_data/holder/latest_mitm_data/LatestMitmDataEntry.py @@ -52,5 +52,5 @@ async def from_json(json_data: Union[bytes, str]) -> Optional[LatestMitmDataEntr async def to_json(self) -> bytes: if isinstance(self.data, bytes): - self.data = base64.b64encode(self.data) + self.data = str(base64.b64encode(self.data)) return orjson.dumps(self.__dict__)