Hi Folks,
            I got the answer here is the code

          URL urs = new URL("hhtp://www.xys.com/default.html);
          URLConnection urlc= urs.openConnection();
Answer:urlc..getContentLength();

Thanks
Pradeep.





> -----Original Message-----
> From: Jonnalagdda, Pradeep [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, January 25, 2001 2:54 PM
> To:   [EMAIL PROTECTED]
> Subject:      Content length
>
> Hi Folks,
>             In my servlet I have  url.I need to know the content length of
> the file.How do i do that.
> Thanks
> Pradeep.
>
> __________________________________________________________________________
> _
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to