Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

display image  RSS feed

 
suraya ya'acob
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Let say i want to display A's picture when display A's biodata which is I retrieve from database. Else if I retrieve B's bioadata... I want to have picture of B. I knew how to retrieve text from database but i dont know how to have the picture...
could someone help me with some coding sample?
thanks in advance..
regards,
Aya
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm a bit confused. Is your question, "How do I display an image?"
 
suraya ya'acob
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to display image(picture) depends on data from database...if I retrieve profile A from dabase then i want to display A's picture...if i retrieve B's profile then i want to diplay B's picture...
thank you
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are going to have to either store the image in the database (take a look at this Java Guru page) or store a filename or URL or something that you can use to load the image.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!