• 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

How to converting a String to Image and make it rendered in JSTL JSP and store in Database ?

 
Ranch Hand
Posts: 601
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a variable in my POJO class String photo.

I need it read from a folder in a file and then appear in the JSTL of a jsp page as well as insert into the database.

My problem is that I am not sure what are the API to use and the steps to accomplish the above.









I am getting the image rendered in the jsp using jstl as well as how to use it to store it into the database.

Should I use Base64 to encode the String first and store it into database and then set the decoded uploadedpath to String photo ?

Hope someone can guide me how to.  Tks.
 
Think of how dumb the average person is. Mathematically, half of them are EVEN DUMBER. Smart tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic