Any way to extract certain bytes from the remote file?

V

Vjay77

I posted this question, but I pressed 'post' and it disappeared. So
once again:

Problem:
I need to go to lets say www.site.com/page.html

Imagine that this html code is 6 mb long.

I need to extract information between bytes 5000 and 5020.

So, obviously problem is, that I do not want to download the whole 6
mb file to extract only 20 bytes.

I will need to do this maybe thousands times a day and I can't afford
to create such traffic.

Is there a way to extract from remote file using exact position?

Something which would simulate steps:

- go to www.site.com/page.html
- open file for reading
- jump to byte x
- read y number of bytes
- retrieve result
- close file

Is there any way of doing this?

Please help me.

Vjay
 
J

Jim Hubbard

I posted this question, but I pressed 'post' and it disappeared. So
once again:

Problem:
I need to go to lets say www.site.com/page.html

Imagine that this html code is 6 mb long.

I need to extract information between bytes 5000 and 5020.

So, obviously problem is, that I do not want to download the whole 6
mb file to extract only 20 bytes.

I will need to do this maybe thousands times a day and I can't afford
to create such traffic.

Is there a way to extract from remote file using exact position?

Something which would simulate steps:

- go to www.site.com/page.html
- open file for reading
- jump to byte x
- read y number of bytes
- retrieve result
- close file

Is there any way of doing this?

Please help me.

Vjay

Is this file actually on a web server?
 
V

Vjay77

Yes I ment remote file at webserver.
I need to know how to do this in .net.
You pointed me to vb 6.0, and to whole application.
Please does anyone know how to do this.
I mean is there a way to do this in .net?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top