I have HTTP
output for body('HTTP') is -
{"statusCode":200,"headers":{"dataserviceversion":"2.0","sap-metadata-last-modified":"Fri, 09 Aug 2019 10:41:57 GMT",
"Cache-Control":"no-store, no-cache","Date":"Fri,
09 Aug 2019 11:26:58 GMT","Content-Type":"application/atom+xml; type=feed; charset=utf-8","Content-Length":"1365811"},
"body":{"$content-type":"application/atom+xml; type=feed; charset=utf-8","$content":"PGZlZWQgeG1sbn
note - content-type is application/atom+xml
$content is having binary data which is nothing but pdf file.
I want to get this data and convert it into pdf file
into sharepoint connector while create pdf file i send body('HTTP')?['content']
still unable to create a valid pdf file. even tried only body('HTTP')
same error.
while opening file it throws error -
in sharepoint create file connector i'm passing that binary string like - base64ToBinary(thatBinaryValue)
but in sharepoint type is
"$content-type": "application/octet-stream",
I tried with HTTP trigger to process PDF, and I suppose it's caused by the content expression. If I use the @triggerBody()['$content']
to process pdf content, the file couldn't be open too.
So I change it to @triggerBody()
to get the content and it works, so yours should be just body('HTTP')
. You could have a try, hope this could help you.
Update : I tried with HTTP action, and got the same result, it's the expression problem. So just change the expression.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.