Hello. I guess the subject is pretty much my question. Is it possible to insert a file via PreparedStatement as an MS Access 2007 attachment? If i stream it into the field as clob/blob, I think it'll store it as binary and be useless to anybody using the file later. Thank you very much...I've seen next to nothing on this.
I suppose that the file you are storing contains binary characters, right ? If yes then BLOB field will certainly store binary data intact. Also, when you will fetch this file, you need to read it using java and manully store the file in a particular path.
Ujjwal B Soni <baroda, gujarat, india> <+918866008962>
"Helping hands are better than praying lips......"
Joined: Aug 06, 2004
hi...thank you. yeah, i was hoping that i wouldn't have to stream it back out of binary when the users use the database. it's essentially an archive for a mail file and i wanted to store the metadata in access text fields and then the attachment from the email body as an access 2007 attachment...then just give them the access db. this would enable the users to just detach the file from access sans any additional coding to convert it back out of binary. i just can't figure out if there is a way to do it programatically.
Joined: Mar 28, 2007
why dont you use a file upload utility to upload that file and after the file gets uploaded, you send him the link