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; anduse jdbc parameterized
insert
orupdate
, inserting datapreparedstatement.setbinarystream(...)
bytea
field.
see:
Comments
Post a Comment