rajitbansal Posted January 18, 2015 Share Posted January 18, 2015 Hello all , I am saving photos in my sqlite database using following codeFile 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 BLOBKindly 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now