I'm trying to make an http request. Now I need to add a body to my request, that body has to be of the type Blob.
At the moment I don't have a blob so my question is how I can convert the textfield I have now to an object to the type blob so I can use that in my requestbody.
Thanks in advance.
EDIT:
With the tempblob record i created an outstream and added the text to it:
TempBlob.INIT;
OutStream.WRITETEXT(payload);
TempBlob.Blob.CREATEOUTSTREAM(OutStream);
TempBlob.INSERT;
TempBlob.CALCFIELDS(Blob);
Is it now ok if i simply do this to add it to the body?:
TempBlob.GET(TempBlob.Blob);
HttpWebReqMgt.AddBodyBlob(TempBlob);