在我的EJB中有下面代码 str为模拟数据
byte vcontent[] = null;
String str = "sadfhsdslgkhjfghdfg";
vcontent = str.getBytes();
System.out.println(str);
System.out.println(str.getBytes());
System.out.println(vcontent.toString());
为什么输出的是sadfhsdslgkhjfghdfg
[B@b2c64
[B@4dfd19
byte vcontent[] = null;
String str = "sadfhsdslgkhjfghdfg";
vcontent = str.getBytes();
System.out.println(str);
System.out.println(str.getBytes());
System.out.println(vcontent.toString());
为什么输出的是sadfhsdslgkhjfghdfg
[B@b2c64
[B@4dfd19
System.out.println(vcontent.toString());
应该输出sadfhsdslgkhjfghdfg
这是我的麻烦所在,本来是从word文件读出
写入服务器的流不能转化回来
System.out.println(vcontent.toString());
byte数组输出时,将数组转换为字串,就会得到[B@....的字样
ejb系统,希多执教
weblogic+jb8
可否?
但为什么出错说String(byte[])方法找不到,
String byteArrayToString( byte[] para )
String byteArrayToString( byte[] para )
你的方法也是找不到,我已经晕了,ejb能否被pb8.0调用?仁兄能否留下
qq号,日后定要多讨教