Jump to content
We've recently updated our Privacy Statement, available here ×

Dynamic images from sqlite Database.


rajitbansal

Recommended Posts

Hello all , 

I am saving photos in my sqlite database using following code

File image= new File(logPath2);
    FileInputStream fis=new FileInputStream(image);
    ByteArrayOutputStream bos=new ByteArrayOutputStream();
    byte buf[]=new byte[1024];
    for(int readNum;(readNum=fis.read(buf))!=-1; ){
    bos.write(buf,0,readNum);
    }
    person_image=bos.toByteArray();  
 
In database i am saving it BLOB
Kindly tell me how to get it on Ireport..
 
 
My main motive is that when i am printing student icard , i get their pic too on icard .. doing it as my undergraduate degree project ...collg managment system ..
I have already browsed the forums but no results...
 
If its not possible tell me any alternative way
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...