473,513 Members | 2,378 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HELP FOR SEEKABLE NETWORK STREAMS IN .NET

hi,
Need some help on Network Streams in .NET. I m planning to build a .NET
application which
mimicks Download Accelerator Plus (DAP:famous downloading application). So
naturally i want to
incorporate features like "Pause" and "Resume" in my apps. But the Prob i
face here is .NET
namespace concerned with Internet usage i.e "System.NET" has a facility to
Download and Upload
files to/from Servers using many classes but none of them have Method with
which we can "Seek"
the position pointer of file to be downloaded to particular position! Even
the Methods which return
the Stream for downloading files, the returned Streams aren't "Seekable"! So
what i found is
that there isn't anyway that i can incorporate the "Pause" and "Resume"
functionality which
requires Seekable Streams using .NET Framework.
So i tried searching in "Native" Win SDK for help. And guess what! Win SDK's
some class
"CInternetSession" has a method called "Seek" which can reposition the
pointer of the file
to be downloaded. So i got the Solution. But i want my apps to be 100% .NET!
SO DOES ANYBODY HAVE ANY IDEA HOW CAN I GET SEEKABLE NETWORK STREAMS, OR
SEEK THE FILE
POINTER TO ANY PARTICULAR POSITION WITHIN THE FILE TO BE DOWNLOADED?
Nov 22 '05 #1
0 1230

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
9120
by: Patrick | last post by:
Hello all! I am porting an application from C++ to Java and have run into a problem using the DataInputStream reader object. The file I am trying to read in is anywhere from 20 to 60 MB and has a...
2
1656
by: Matej Cepl | last post by:
Hi, using python 2.3, ClientForm, and ClientCookie and I have this code: opener = ClientCookie.build_opener(ClientCookie.HTTPRefererProcessor, ClientCookie.HTTPRefreshProcessor,...
0
2897
by: Joe Johnson | last post by:
Greetings, I just did a fresh install of Solaris 10 on Sparc. The OS ships with perl_5.8.4. When I run some of my scripts that run fine on Linux, I get this: IO::Seekable::getpos missing at...
0
296
by: dany_gates | last post by:
hi, Need some help on Network Streams in .NET. I m planning to build a .NET application which mimicks Download Accelerator Plus (DAP:famous downloading application). So naturally i want to...
6
2376
by: John Walton | last post by:
Hello, everyone. I just began school, and they already assigned us science fair. Since I'm in 8th grade, I get to do demonstrations for our projects. I'm probably going to demonstrate Python's...
6
52239
by: Hardy Wang | last post by:
Hi all: The Stream object from WebRequest.GetResponseStream() is non-seekable. How can I convert this stream to a byte array? For ordinary Stream (seekable), I can use...
7
3125
by: simonrigby_uk | last post by:
Hi all, Sorry if this is the incorrect group but I couldn't see anything directly relevant. Can someone confirm for me what happens when two network streams are sent to an application at the...
5
3089
by: Dave Kolb | last post by:
Is there any other solution for an ASPNET application to access network resources other than running as SYSTEM, using delegation (a nightmare to get to work) or the COM+ solution? I cannot seem to...
3
2679
by: Barry Flynn | last post by:
Hi I am working with a VB 2005 program which has been converted from VB6. It writes data out to a flat file, with code like the following line WriteLine(riFileNo, "Hist", lsAssetID,...
0
3475
by: shahiz | last post by:
This the error i get when i try to run my program Error: Unable to realize com.sun.media.amovie.AMController@18b81e3 Basically i have a mediapanel class that initialize and play the media as...
0
7267
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7175
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7553
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7120
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5697
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3247
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1609
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
809
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
466
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.