kaseykwong / bme590final

Head Impact Exposure (HIE) Sensor Multi-Unit Downloading, Logging and Storage Management Tool
MIT License
0 stars 0 forks source link

storing bytes data in mongodb #51

Open kaseykwong opened 5 years ago

kaseykwong commented 5 years ago

Is there a field to use to store encoded data that is type bytes into the database? strings use CharField and ints use IntegerField but I cant find any field for bytes

mlp6 commented 5 years ago

You should still be able to use the CharField. All byte strings should have a decode() method that will yield a string, and you can then use the string.encode() method to re-encode back to your byte string.

mlp6 commented 5 years ago

I'm not sure why that font is so large...