How to send PDF file to TN Partner over AS2 via HTTP

OK good deal! :smiley:


I have a requirement of taking in zipped payloads and extracting the content files.
I tried putting the compression as True and then tried to extract the bytes[] from the stream.
But still i am unable to generate the zip files. I am trying to decompress the bytes[] using the java code:

// pipeline
IDataCursor pipelineCursor = pipeline.getCursor();
Object[] compressedData = IDataUtil.getObjectArray( pipelineCursor, “compressedData” );

// byte[] compressedData = null;
Inflater decompressor = new Inflater();
ByteArrayOutputStream bos = new ByteArrayOutputStream(compressedData.length);
byte[] buf = new byte[1024];
while (!decompressor.finished()) {
int count = decompressor.inflate(buf);
bos.write(buf, 0, count);

byte[] decompressedData = bos.toByteArray();

// pipeline
IDataCursor pipelineCursor_1 = pipeline.getCursor();
Object[] outFiles = new Object[1];
outFiles[0] = new Object();
IDataUtil.put( pipelineCursor_1, “outFiles”, outFiles );

Please suggest.