2005 IR Help Posted September 2, 2006 Posted September 2, 2006 By: angelo - amlavides how to display an image stored in database? 2005-10-19 02:37 Hi all. How can i display an image, which is a field in our database, inside iReport. Currently the field has a datatype of 'image' and when I put it inside iReport and preview it, all i can see are the numbers representing that image. When we do this in Crystal we can see the actual image when we insert the field. Am i missing something here? Thanks for any help you can give... By: Lukus - lukus2 RE: how to display an image stored in database? 2005-10-19 14:33 Hi, One way would be to call an external java class that streams the field content to a tempory file and returns that file name and path. Just instantiate your object in the section where you have placed the $F{xxx} field. Cheers Lukus By: angelo - amlavides RE: how to display an image stored in database? 2005-10-19 18:12 thanks for the input Lukus.. but is there any other way without saving it to a temporary file? thanks.. -angelo By: C-Box - c-box RE: how to display an image stored in databas 2005-10-20 03:22 We do load all needed images from DB before calling the fill-method and work with parameter where each image is an parameter of type "java.awt.Image" ... so no files just objects.... but I guess you want to see your image in designer already.. but AFAIK this isn't possible yet. sorry C-Box By: Margaret - margaretv RE: how to display an image stored in database? 2005-10-21 04:48 If you can see the numbers, it sounds like your image is a java.lang.String class. Try changing it to java.io.InputStream.
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