• 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

Attaching an Image

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey,
So I'm having problems attaching an image into a java application. The application is mainly JDBC oriented and connecting to a database, but I would like the image to remain on the local machine but the location should be referenced in the database so that we can pull it up. Each image is associated with a person whose details are to be stored in the database.
Does anyone know how I can do this?
Thanks,
Rohan
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You should have mentioned your previous post as it contains a lot of information about your project.
Also, your project sounds a lot like homework. You need to do your own homework, as well as mention the parameters of your assignment. There are lots of solutions that would make sense in the real world but may be constrained in your assignment. Mentioning them ahead of time will save us a lot of time and energy. For example, do you really want to locally cache images? It may be more trouble than it is worth because you have to identify when images have changed or been deleted on the server. Are you certain that storing images in the DB and downloading them will be a performance bottleneck?
You say you are "having problems" caching. Exactly what problems are you having? You need to show you have made some effort at solving your own problems.
 
These are the worst of times and these are the best of times. And this is the best tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic