Uploading PDF to Azure Blob Storage via Groovy - Issues with pictures
Julian Baldner
1
Reputation point
0
I have the request to Upload a PDF from SFTP to Azure Blob which is working for text based PDF only.
If I have a PDF with pictures the PDF ulploaded is faulty (missing pictures)
If I use the "normal" bytearrayoutputsream and return a string I convert it back to PDF and it works.
The issue only occours using Azure methods:
I use this line of code to so:
def body = message.getBody(String.class) BlobOutputStream blobOutputStream = blob.openOutputStream() blobOutputStream.write(body.getBytes()) blobOutputStream.close()
Sign in to answer