Hi Thys,
>> p_web._LocalDataQueue.Value to read the parameters, which is defined to have the size of Net:ValueSize
short answer: It's not a good idea to try and read the value from the queue directly. If I were you I'd loop through the queue to get the parameter names (assuming you don't know what they are) then use the GetValue method to get the (unlimited) string value.
long answer: the NetWebServerLocalDataQueueType contains a number of fields, including the Value field (which is used for short values) and the ExtValue field, which is used for long values. Most values are short, so for performance reasons it's not necessary to use a variable length string there. However long ones are parsed into ExtValue. The GetValue method shows you the way to read a value in either case, which is why it's easiest for you just to use that method when reading a value.
>> packet variable which is created as String(NET:MaxBinData) in the template
you don't mention the context, but I'm assuming it's a NetWebPage. You'll notice in that procedure is a routine called SendPacket.
You can call this routine multiple times. So if you have a large string that needs sending you can just do a
packet = 'something'
do sendPacket
packet = 'something more'
do SendPacket
and so on.
Incidentally now that StingTheory is a given, the goal is to move these "packet" variables to being StringTheory objects, which in turn simplifies this sort of thing.
Cheers
Bruce