I have been using Java and Hibernate for DAO. I stored a long text in on of the field which is MySQL blob and inserted the record in DB using MYSQL Query Browser. When I run select query it showing the string ok.
But When I read it in Java application and trying to show on JSP its been shown as [B@da99836. or some similar value. I debugged the application if its JSP issue.. even in Java application also its been read as same junk value.
Can someone help me with this.. Thanks in Advance.
The default toString format (if it's not overridden) is <class name>@<hash code as HEX>, and that's exactly what you're seeing here. The class name in this case is [B. The [ indicates it's an array; the B indicates the element type is byte. So what you're getting is a byte, and you need to do something with that.