Sending data from RequestDone event (wodWebServer / wodWebServer.NET)

by Vesku @, (5221 days ago)

Hi,

Is there a limit when sending data with Send? When limting amount of data, it works.

br,
Vesku

Sample code:
e.user.Response.Delivery = WODWEBSERVERLib.DeliveryEnum.Manual
e.user.Response.TransferEncoding = WODWEBSERVERLib.TransferEncodingsEnum.ChunkedEncoding
Dim DS As New DataSet
DS.Tables.Add(SongsDataView.ToTable())
xmlString = DS.GetXml()
e.user.Response.SendChunk(xmlString)
e.user.Response.Send()

locked

Re: Sending data from RequestDone event

by woddrazen @, (5221 days ago) @ Vesku

Hi Vesku,


Is there any reason why you cannot send data when Delivery is set to Automatic?


Regards,
Drazen

locked

Re: Sending data from RequestDone event

by Vesku @, (5221 days ago) @ woddrazen

Hi Drazan,


No reason, but it works same way

locked

Re: Sending data from RequestDone event

by woddrazen @, (5221 days ago) @ Vesku

Vesku,


Why don't you then use Delivery = Automatic and leave wodWebServer to do this automatically?


Drazen

locked

Re: Sending data from RequestDone event

by Vesku @, (5221 days ago) @ woddrazen

Unfortenately automatic setting seems not to work. Maybe the problem is in that variable(size exceeded).

I'll have to study this coming weekend.

br,
Vesku

locked

Re: Sending data from RequestDone event

by woddrazen @, (5221 days ago) @ Vesku

Vesku,


There shouldn't be any limit inside SendChunk Method. Did you maybe check our 9. Chunked response VB sample? You can find that sample inside component Samples folder.

Let us know if you need more help.


Drazen

locked

Re: Sending data from RequestDone event

by Vesku @, (5220 days ago) @ woddrazen

Hi Drazen,

The size of the variable is 374 kB. If save it as a file, automatic-mode can send it. I would not like to do this via file.

So smaller variable works, so could there be limit like 256 kB in SendChunk?

br,
Vesku

locked

Re: Sending data from RequestDone event

by Vesku @, (5220 days ago) @ Vesku

Hi Drazen,

I iterate the limit. 198 kB seems to be it.

I use now also automatic mode, so the limit is with ChunkSend. As you see, I'm to to create XML data to client directly from dataset (rest-api) and it would be easy to provide the data in on large chunk.

br,
Vesku

locked

Re: Sending data from RequestDone event

by woddrazen @, (5220 days ago) @ Vesku

Vesku,


This seems to worked for me without any problem. I managed to send 424 KB using only one SendChunk.

Is there any chance you can send us email to techsupport@weonlydo.com ? If you wish I can send you my example there.


Drazen

locked

Re: Sending data from RequestDone event

by Vesku @, (5219 days ago) @ woddrazen

Ok, I'll do that. I'm interest to see what i'm doing incorrectly...
br, Vesku

locked