• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Saving image to BD

 
Jose Ayerdis
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have some questions about saving images to bd :

is there a way to save images to bd??

should i uploaded to the server first??

i am using inputFile but no luck with that there is no way i can instanlly transform the file to byte and save it withoud having it uploaded....

and finally i know how does the inputFile shows but i'd like to have something else display i just want the dialog functionallity to pick the file can that be done??
autocomplete.png
[Thumbnail for autocomplete.png]
Application Image
 
Lucas Smith
Ranch Hand
Posts: 808
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use BLOB - Binary Large Object in SQL.
Alternatively you can upload that image on a photo server and put a link to it into the databse.
 
Jose Ayerdis
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes i can use blob you're right but i was asking a method or example to do it with JSF....

should i uploaded to the server first with inputFille??


and i want to use the inputFile dialog only in order to the user click on the image and pick one but i don't know how.....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic