vivek4348 Posted January 22, 2012 Share Posted January 22, 2012 Hi all, I wish to display images on my report. These are stored in SQL server as varbinary fields. Can anyone here please tell me the procedure of how to display images (in byte[]).I did exactly what is mentioned inhttp://rgauss.com/category/interface/---getting no such method exception...and http://vmustafayev4en.blogspot.com/2011/08/read-alfresco-node-to-byte-array-in.html-- here I am getting java.lang.ArrayIndexOutOfBoundsException: -77. Thanks,Vivekanand Alampally. Link to comment Share on other sites More sharing options...
munga Posted January 23, 2012 Share Posted January 23, 2012 Hi Vivekanand,I haven't used SQL server only MySQL but I assume the image is converted to the same java Object.logo is the SQL field. i.e select logo from company;Hope it helps.MungaCode:<imageExpression class="java.io.InputStream"><![CDATA[((java.sql.Blob)$F{logo}).getBinaryStream()]]></imageExpression> Link to comment Share on other sites More sharing options...
vivek4348 Posted January 23, 2012 Author Share Posted January 23, 2012 Thanks Munga for your solution..I tried http://www.kavecan.com/index.php?id=82 and it worked...Thank you,Vivek.. Link to comment Share on other sites More sharing options...
face_sad Posted May 2, 2013 Share Posted May 2, 2013 does this mean you want to convert byte array to image, here is tutorial and codes: http://www.rasteredge.com/how-to/csharp-imaging/covert-image-to-byte/ 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