This is a sample table for the data I need to extract from a PostgreSQL database. Sample data
As you can see, the iv_file (it's a hexadecimal number) column in is in Bytea format. So when I try to extract onlu the iv_file column in R, I get the following.
`iv_file
1 \\x
2 \\x
3 \\x
4 \\x
5 \\x
6 \\x364630353037303036463035303830303646303530443030364530353142303036453035333730303643303535463030364230353838303036393035414530303638303544313030363630354634303036353035313630313634303533373031363330353537303136323035373730313630303539373031354630354236303135453035443630313544303546363031354330353136303235423035333430323539303535343032353930353733303235373035393130323536303542313032353530354430303235343035463030323533303530453033353230353245303335303035344430333446303536423033344530353842303334443035414130333443303543383033344130354538303334413035303830343438303532373034343730353435303434363035363530343434303538343034343430354132303434333035433230343431303545313034343030353031303533463035314630
The data is not the same as the original data. (Please note that the original data has a long number too) So How do I use bytea data format in R? or how do I convert it?