• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

Image display in the Database  RSS feed

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wrote code that adds a photo to my student in the database. He takes my photos from the (web /images) but this is not correct. How to make it so that he took a photo from (Disc C /Pictures). In general, from the computer

My code

MyServlet


AddStudent Servlet

 
Sheriff
Posts: 24381
55
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Steve Gates wrote:I wrote code that adds a photo to my student in the database. He takes my photos from the (web /images) but this is not correct. How to make it so that he took a photo from (Disc C /Pictures). In general, from the computer...



I don't understand the question. The code you posted looks like it's supposed to upload a file from the client system and store it somewhere on the server -- apparently in a folder named "images". And as far as I can see it does that, although it's easy to get something wrong in that sort of coding.

But mostly I'm confused by the person who takes the photos from web/images. The person who uploaded the photos is going to get them from somewhere on the client computer, and you don't have any reason to care where he gets them from.

However it looks like your native language is Russian. In English "he" can only refer to a person, but perhaps you meant it to refer to something else, like maybe the code you posted? You would use "it" if you were talking about your code or any other inanimate object.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!