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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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