04-30-2013 09:14 AM
Solved! Go to Solution.
04-30-2013 09:21 AM
04-30-2013 09:58 AM
If you are seeing something like:
then you have used a toString method on an Object that does not support toString and as a result, you are getting the object reference.
In this case, I agree completely with Simon's suggestions. But instead of using StreamToBytes, I would create a 1024 byte read buffer, and the read and write 1K blocks until the last block, and then you will process whatever is left. This has the added advantage in that you d not convert the bytes to String and back again, which might loose some encoding.
But do put some timings to to find out where the time is actually spent.
04-30-2013 10:18 AM
So much thanks for your replies. I understand my problem and streamtobytes really change download speed.
for other problem
os.write(("blabla" +IOUtilities.streamToBytes(in) +"blabla" ).getBytes() );
i write this but this code totally wrong and i change like this
thanks again. best regards