Win a copy of Head First Go this week in the Go forum!
  • 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
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

Image display in the Database  RSS feed

 
Greenhorn
Posts: 10
  • 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

 
Marshal
Posts: 24198
54
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.
 
Then YOU must do the pig's work! Read this tiny ad. READ IT!
Become a Java guru with IntelliJ IDEA
https://www.jetbrains.com/idea/
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!