Hello I have a logic app that looks for email attachments, I made an HTTP request to upload this file into a temporary blob storage. When I open my pdf file it is empty.
I have a variable where I put the file content and send it as body in the HTTP Request and It looks like this
I need to upload any type of files and I am getting this problem only with files that are not text
2
Answers
I have reproduced in my environment and got expected results as below:
Design:
You have connector called as
Azure blob Storage
(In that connector you can use action called asCreate blob (V2)
like below):Output:
In storage account:
Codeview:
You can do this:
Create a Logic App that looks like this, meaning that you need to have a storage account and a container where you will store the files
If you do not have a container simply create one
Next as you can see I am sending an email with a PDF attachment from a google account to a outlook one.
And here you can see that I have received it in Outlook
So now the Logic App will run since it expects for emails with attachments, and if you now check your blob container you can see that you have the file there, after downloading it, you will see that it is intact.
Hope this helps, if you need more assistance just let me know. (no reputation points yet, just started to contribute in stack overflow recently so i can only share 8 links, no images if this helped you please upvote it 🙂 )
01
02
03
04
05
06
07
08