panneer
8 years agoOccasional Contributor
Request Attachment Size limited to 8 KB
Hi All,
I am building a virt in Service V Pro, where I use a groovy (dispatch) script to store request attachments to a file system (See below code snippet).
When I send the request (multipart request), the file gets created but the input stream contents always limited to 8 KB.
Even if i send an attachment greater than 8KB, the input stream saves only first 8 KB, thus making the file invalid.
Any comments would be appreciated
Code Snippet
------------------
//extract the attachment file
def file = new File (filename)
log.info (file.getAbsolutePath())
def attachment = attachments[0]
def is = attachment.getInputStream()
file.append(is)
log.info("Attachment Size:" + attachment.getSize())