Re: how to get an exact size of an attched file (Part)
Tuesday, February 19, 2002 05:53 AM
I have found a way.
getting the inputStream of a Part.
allocating an extra size to a byte b,
byte b = new byte(bigSize);
InputStream is = part.getInputstream();
int c = is.read(b,0,bigSize);
c is the correct size !