By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,806 Members | 1,380 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,806 IT Pros & Developers. It's quick & easy.

convert Blob of mysql database to String with java

P: 2
hi evryone

i want to know how to convert a blob to string i tried some solution but it keeps show the result like this [][] .
Mar 24 '13 #1
Share this Question
Share on Google+
3 Replies


10K+
P: 13,264
What do you want it to look like? You know that BLOB is binary right? You can't just convert it to a string without knowing how the BLOB was created in the first place.
Mar 24 '13 #2

P: 2
it s a data saved in the database as a blob type
Mar 24 '13 #3

10K+
P: 13,264
Yes, and BLOB is binary data which means it could be an image, a.exe file for some application, a Justin Beiber mp3 song ... anything. You can't just convert it to a string and expect to get meaningful information. First look at what type of data it is and how was it converted to BLOB column data before trying to blindly convert it to a string.
Mar 25 '13 #4

Post your reply

Sign in to post your reply or Sign up for a free account.