• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Insert file as Attachment in Access 2007

 
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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.
 
Tom Griffith
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
ujjwal soni
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

why dont you use a file upload utility to upload that file and after the file gets uploaded, you send him the link
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic