last day (17 days later) » 

9:24 PM
1
Q: How to convert BLOB to Binary then retrive it from Sqlite?

Omar113I have sqlite db with BLOB column contains images. I have been searching for many solutions with no luck at all. I set the image field (column) a class of java.io.InputStream however, I get error says "jasperreports.engine.JRException: Unable to get value for result set field "image" of class ja...

 
I need further clarification of changing the column from BLOB to binary. I can't find a valid way!
 
You should post small jrxml (with query)
 
@AlexK Check this now!
 
What type has PicT1 at DB? What blobtype?
Did you try queries like this: 1) SELECT hex(PicT1) FROM HTNlist 2) 1) SELECT quote(PicT1) FROM HTNlist ?
 
9:24 PM
quote(PicT1) gives me the same error. hex(PicT1) is giving another error "Byte data not found at ........"
 
Hi!
Do you have small db to check your report?
 
sure
but how can I send?
 
you can share via some filesharing service
 
ok just a minute
 
ok
you can use google disk, for example (public link) :)
or you can just send me CREATE query - I'll create table locally
and upload some image
are you here? do you still need help?
 
can you make link public
?
 
can't you open it?
 
no
I need access
 
done
 
10:08 PM
Will you test it?
 
yes, but need to go sleep. it's a deep night at Moscow
 
hahaha same here in Egypt
 
))
yeah, not so simple case. jdbc driver doesnot support blob and stream
maybe need to write some java code to convert string to byte array
ok, I'll check tomorrow. but I hope someone helps you tonight
 
yeah thanks alot
 

  last day (17 days later) »