• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ERDatabaseAttachmentProcessor not returning uploaded file verbatim
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ERDatabaseAttachmentProcessor not returning uploaded file verbatim


  • Subject: Re: ERDatabaseAttachmentProcessor not returning uploaded file verbatim
  • From: Paul Hoadley <email@hidden>
  • Date: Thu, 12 Sep 2013 08:29:09 +0930

On 11/09/2013, at 8:30 PM, Paul Hoadley <email@hidden> wrote:

I'm not having a great week.

But it's getting better.

In development, I'm using the "db" storage type backed by PostgreSQL (9.1).

The clue was right there in the version number...

For example, here are the first few bytes of a CSV file viewed in the terminal:

0000000 4c 6f 63 6b 2c 41 75

Here are those same first few bytes viewed in the table with psql:

\x4c6f636b2c4175

That looks good to me—the '\x' just denotes PostgreSQL's hex representation.

And here's the first few bytes of what the browser returns after clicking the attachment icon:

S6f636b2c4175

This behaviour was consistently reproducible until I updated the mismatched JDBC driver.  I was still using an 8.x driver for a 9.1 database.  Trap for young players.


-- 
Paul Hoadley
http://logicsquad.net/



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >ERDatabaseAttachmentProcessor not returning uploaded file verbatim (From: Paul Hoadley <email@hidden>)

  • Prev by Date: Re: Status Update - Learning The Wonders Book
  • Next by Date: RE: Slow response time
  • Previous by thread: ERDatabaseAttachmentProcessor not returning uploaded file verbatim
  • Next by thread: Does Ajax work in Direct Connect Mode?
  • Index(es):
    • Date
    • Thread