471,093 Members | 2,142 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,093 software developers and data experts.

Any way to extract certain bytes from the remote file?

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

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.


Nov 20 '05 #1
0 1431

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by flamesrock | last post: by
44 posts views Thread by RB | last post: by
8 posts views Thread by Fabian Braennstroem | last post: by
7 posts views Thread by erikcw | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.