hi I am able to extract the textual content as well as the image within the page using a html parser,but now how will i find the size of the extracted text,and image..........
Joined: Dec 13, 2002
Can you be little more specific?
Joined: Aug 07, 2003
You'll need to download each image referenced (and CSS and JS and any other referenced object you want to count). Some of them may tell you the size of the object in bytes at the start of the response, allowing you to get just that and then close the connection.
To find the size of the root HTML itself, simply count the characters as you read them from the stream.
If this doesn't answer your question, please post a more detailed description and -- even better -- code.