Hi all,
I have this method:
| public byte[] getBytes(long start, long end)
| throws IOException {
|
| byte[] bytes;
| ByteArrayInputStream byteInput;
| InputStream resource;
| int len;
|
| resource = MyClass.class.getClassLoader()
| .getResourceAsStream("file.txt");
| resource.skip(start);
| len = (int) (end - start + 1);
| bytes = new byte[len];
| resource.read(bytes);
|
| return bytes;
| }
|
When I call getBytes(0, 2999) outside the JBoss, there's no problem, but when I make
the same call within the JBoss, I get a byte array with '\u0000' value after the
2299th element.
Any idea?
file.txt has 42 KB and I'm using jboss-3.0.4_tomcat-4.0.6.
Thanks,
Thiago.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3823613#3823613
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3823613
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user