Hi there
I wish to insert a JPG file into a bytea field.
When the file specified is plain TXT, everything works 100%.
However, if I try with JPG, it doesn't the record contains garbage.
Does anybody have an idea, or have sample code I can look at?
Thanks,
Michael
Search found 1 match
- 28.09.2007, 16:10
- Forum: PostgreSQL
- Topic: INSERT a file into a bytea datatype
- Replies: 2
- Views: 1751