J
jpatel7
Guest
I am sending a file in HTTP request. If the length of the file content is greater than 30000, then messagePart doesn't contain the whole content. It only contains upto 30,000 with > at the end. Is there any way that messagePart contains the whole file and send it in HTTP request? Here is my code: lv-multiPartEntity:AddPart(lv-messagePart). lv-messagePart = new MessagePart("text/plain", new String(lv-tempFile)). lv-messagePart:Headers
ut( HttpHeaderBuilder:Build( "Content-Disposition") :Value('form-data; name=' + quoter("primary")) :Header). lv-multiPartEntity:AddPart(lv-messagePart). lv-requestTempData = lv-messagePart:Body:ToString(). copy-lob lv-requestTempData to file "C:\rex\temp\request.txt". message length(lv-requestTempData).
Continue reading...
Continue reading...