INSERT a file into a bytea datatype
Posted: 28.09.2007, 16:10
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
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