I guess it's semantics, what you described carries that state in the token.

-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Gray, Franklin W
(RWG8)
Sent: Tuesday, August 21, 2007 10:28 AM
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: Re: [ADVANCED-DOTNET] http request streaming

Doesn't have to be stateful.  Can write a Web service with the following
methods:

Fuction StartTransfer() as string 'returning token

Sub Read(B() as bytes, Length as int32, Token as string)

function EndTransfer(Token as string) as (whatever you need to return)

In the startTransfer, create a unique file (I use a file name with a
random number at the end) and return that as a token.  Then have him
call the Read method inside a loop passing in say 512 bytes at a time.
When he calls EndTransfer, then do your processing of that file and
return what he needs from you.

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to