Skip to content

Commit 04e26a7

Browse files
committed
Removed base64 decoding stage
1 parent 03e11a4 commit 04e26a7

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/nypl_py_utils/classes/avro_client.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import avro.schema
2-
import base64
32
import requests
43

54
from avro.errors import AvroException
@@ -130,10 +129,8 @@ def decode_record(self, record):
130129
rec=record, schema=self.schema.name
131130
)
132131
)
133-
bytes_input = base64.b64decode(record) if (
134-
isinstance(record, str)) else record
135132
datum_reader = DatumReader(self.schema)
136-
with BytesIO(bytes_input) as input_stream:
133+
with BytesIO(record) as input_stream:
137134
decoder = BinaryDecoder(input_stream)
138135
try:
139136
return datum_reader.read(decoder)

0 commit comments

Comments
 (0)