Re: [GENERAL] decoding BLOB's

2016-02-22 Thread Chris Mair
Can someone point me in the right direction per how I would remove the first 25 bytes and the last 2 bytes from a bytea column? http://www.postgresql.org/docs/9.3/static/functions-binarystring.html Substring might do it for you. won't doing it in SQL still result in a BYTEA result which will

Re: [GENERAL] decoding BLOB's

2016-02-22 Thread John R Pierce
On 2/22/2016 11:23 AM, Joshua D. Drake wrote: Can someone point me in the right direction per how I would remove the first 25 bytes and the last 2 bytes from a bytea column? http://www.postgresql.org/docs/9.3/static/functions-binarystring.html Substring might do it for you. won't doing it i

Re: [GENERAL] decoding BLOB's

2016-02-22 Thread Joshua D. Drake
On 02/22/2016 11:08 AM, CS DBA wrote: Hi All; we've found a post about dumping blobs: / / /I wrote: [fanlijing wants to write bytea to file] > A simple > COPY (SELECT byteacol WROM mytab WHERE ...) TO 'filename' (FORMAT binary) > should do the trick. Corrections: a) "binary" must be surrounded

[GENERAL] decoding BLOB's

2016-02-22 Thread CS DBA
Hi All; we've found a post about dumping blobs: / / /I wrote: [fanlijing wants to write bytea to file] > A simple > COPY (SELECT byteacol WROM mytab WHERE ...) TO 'filename' (FORMAT binary) > should do the trick. Corrections: a) "binary" must be surrounded by single quotes. b) *that won't dum