• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

retrive image from sqlite to java eclipse

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi.. i'm doing my final year project using java eclipse and sqlite as database. the problem is i cannot retrived image from database (blob) and displayed in my GUI. please help me.


 
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch

Always use the code button. Since you are new, I have used the code button on the code for you, and doesn't it look better

I can see a major problem, I am afraid. You appear only to have one class. You should separate the retrieval from the database and the display into separate classes. Please write a class which loads the image from the database, and see how that works. If you can load and save the image, you have made a start.
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The other problem I see is that you don't have any code which attempts to read Blob data from a database. So the problem isn't that your code is wrong in some way which we could discuss, the problem is that you haven't written the code yet. And nobody here is going to write it for you. So don't despair, write some code and let's discuss it if you have problems with it.

 
Campbell Ritchie
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Paul Clapham wrote:. . . you haven't written the code yet. . . . So don't despair, write some code and let's discuss it if you have problems with it.

Or even better, see if you can't copy some code. Look at this Tutorial. You will probably find some code there which you can copy with only slight changes
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic