简体   繁体   中英

How to store a long data like RFID tag data in a postgres database?

How to store a long data like RFID tag data in a postgres database? The RFID reader gives the BCD data converted into hexadecimal data of 24 bytes.

Example:cd00320000a4002a00001042 is the converted data given by the reader.

There are many possibilities to do that.

It somewhat depends on what you want to do with the data.

But there seems also to be some confusion on your side: As the hex dump above has 24 digits, it is only 12 bytes worth of data, not 24. Which could be stored as 3 ints, or as string "cd00320000a4002a00001042", or ...

Question: How is the data stored in your java program, ie of what type is a variable where RFID data is stored?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM