• 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

How to store and retrieve PDF files for Access Database

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I need to develop a system in which the client can send a file (pdf, doc, ppt, ps, etc) to the servlet, the servlet gets the file and stores it in a database. When the client request the file, the servlet need to get the file from the database and then send it to the client. And the client use applet.
Now the question is what kind of type should I define for the file? Will Blob do the work? If so, how to do it? Thank you.
Clara
 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To upload your file, look into using the MultipartRequest from http://www.servlets.com/cos/index.html.
To store your file, a BLOB should be suffecient.

------------------
Brent Worden
http://www.brent.worden.org/
 
reply
    Bookmark Topic Watch Topic
  • New Topic