just as the title says, im not sure how i should access info from a table that has a data column as oid.
im trying to store info consumed through kafka (using spring boot) into a postgres database and the only option i have right now is using @lob, which doesnt directly store the data into the table but an oid reference to a large object in a pg_largeobject table. however when trying to access the data in that table using something like 'select data from pg_largeobject' the format is not as it should be. instead of "{"$schema":"/mediawiki/recentchange/1.0.0","meta":{"uri": etc." i get "\x7b2224736368656d61223a222f6d6564696177696b692f726563656e746368616e67652f312e302e30222c226d657461223a7b22757269223a2268747470733a2f2f7777772e77696b69646174612e" and i couldnt really find valuable info online. or at least if i could use a replacement for @Lob that would be nice.
i tried to not use lob but i either got exceptions thrown or the encoding would be WIN1252 instead of utf8. i tried using columnDefinition=text/varchar and some settings for application.properties. when trying to use lo_get(cast i get "No function matches the given name and argument types..."