Create
a ByteArrayOutputStream and write the data there first - this has a size()
method that will tell you how many bytes are in the stream,
Kevin
-Original Message-From: A mailing list about Java
Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Mahesh V
YadavSent: 21 June 1999 07:49To:
[EMAIL PROTECTED]Subject: How do calculate the
Content_Length
Hai Everybody,
I had a small problem in sending data from applet to servlet
using POST method.
here what i want is to send java objects ( eg: java Vector )
to the backsend servlet.
iam using the HTTP POST Method, so i would i calculate the
length of the Object( the data which i want to post)
to set in the the CONTENT_LENGTH Property of URL
class.
Thanks a Lot in Adv.
Mahesh