axis中blob类型转string类型

13年前
//将blob类型转成byte数组
 byte[] temps = syncoa1.getPhoto().getBytes((long)1,(int)syncoa1.getPhoto().length());
  //通过base64将byte类型转成String类型
 String tempRet = new BASE64Encoder().encode(temps);
注:syncoa1.getPhoto()为blob类型
//通过String转成byte数组
byte[] bytes = new sun.misc.BASE64Decoder().decodeBuffer(tempRet);
//通过Hibernate提供的表态方法来实现byte数组与blob类型之间的转换
Blob tempBlob = Hibernate.createBlob(bytes);