BLOCK:ConstantByteArray
LABEL:BYTES 1
value = ABCD
=> VAR @bytes1
ENDBLOCK
BLOCK:ConstantString
LABEL:STRING
value = "hello"
=> VAR @myString
ENDBLOCK
BLOCK:ConstantByteArray
LABEL:BYTES 2
value = DCBE
=> VAR @bytes2
ENDBLOCK
var ms = new System.IO.MemoryStream();
ms.Write(bytes1);
ms.Write(System.Text.Encoding.UTF8.GetBytes(myString));
ms.Write(bytes2);
var finalBytes = ms.ToArray();
ms.Dispose();
// Now you can use the variable finalBytes for example
// in the content of a RAW http request
3 Likes