Skip to content
Advertisement

how to save binary type in postgresql

this is php code to save binary data (image,3dmodeling)

To store 3d modeling and textures, it was a DB created to manage them in the first place.

JavaScript
JavaScript

When sending and receiving a file, the file is not converted . It seems that I have a wrong understanding of bytea that this method is not working properly now, but I am not sure.

this is table

JavaScript

md_data , mdl_mt , mdl_nt is bytea[] type

what is wrong???

Refer to this https://www.postgresql.org/docs/10/datatype-binary.html

Advertisement

Answer

byte[] is not bytea[] type bytea[] typte

but i don’t load bytea file

bytea file is not used escape and decording

JavaScript

it is no work

only load file x it was not decording

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement