Jump to content

Postgres and bytea


Recommended Posts

I am writing an array of singles to a postgres database table, with the column defined as a bytea. The bytea is suppose to be postgres's blob datatype, I do not get any errors writing or reading the data. The problem is that everything after the 63 value (255 bytes) is junk. I can not find a logical explanation for this, and I can not see anything wrong with the method I am using. I have attached an example that exhibits the problem, if somebody has time to create a table in postgres or another database and try this, it may help determine where the problem lies. Also, if anybody has any idea what is going on I would appreciate the help. Thanks in advance, I kinda discovered the problem late, and I am under the gun now.

Link to comment

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.