Wednesday, February 22, 2017

Issues saving hex format data to binaryfield

I have a project where I am saving RFID information (which comes in as hex strings) to a bytea object in my postgres database. I can retrieve this information without issue. I am struggling to overwrite that object with new data (For when someone loses their rfid and needs to replace it). I have been unable to find an example of someone saving a small amount of data to a binaryfield. Just lots of people saying don't save images or files to binary fields and then explaining how to do that. 

Can anyone help me with simply saving something to a binaryfield to update a bytea object in a PostgreSQL database?

Thanks,
Brian

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8a21790a-1fec-49ad-a3c2-c16865022abf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment