How to set Content-Type header in http outbound adapter. It always sends the content-type as plain text/html.
How to set Content-Type header in http outbound adapter. It always sends the content-type as plain text/html. I am uploading a image / Pdf.
{
Parameter ADAPTER = "EnsLib.HTTP.OutboundAdapter";
Property Adapter As EnsLib.HTTP.OutboundAdapter;
Parameter INVOCATION = "Queue";
Method SaveFile(pRequest As Messages.File, Output pResponse As Messages.SaveFileResponse) As %Status
{
set fileName = pRequest.fileName
set Content = pRequest.fileContent
set tSC = ..Adapter.PutURL(URL,.HttpResponse,"",Content.Read())
}
}