java - How to insert a outlook mail msg as an element in a row in PostgresSQL -


i need develop system in requester upload outlook *.msg file having approval request. how can save(insert) *.msg file in postgresql row of approval table. business logic developed in java.

you should store email messages bytea fields, because might in text encoding. would:

  • create bytearrayinputstream points message file; and

  • use jdbc parameterized insert or update, inserting data preparedstatement.setbinarystream(...) bytea field.

see:


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -