How to Display Binary PDF Data in a Web Embedding?

Hello Everyone,

I am receiving the binary data of a PDF using callAPI. Is there a way to display this in a web embedding? Either by converting the binary data into a PDF format as embedding it directly not working. Any guidance would be appreciated!

1 Like

Oh I tried that so hard! Wasn’t able to make it uploadable even with an API capable of receiving raw binary file in raw text body. Glide adds \n for break line so it corrupt files.

2 Likes

So, basically there is no way to read binary files and display them in web embeddings?

2 Likes

I’m not saying it is impossible. I’m saying that even with a lot of effort, i wasn’t able to do it.

2 Likes

It’s possible. Only problem is that it can cause your app to be very sluggish. If you have lots of binary data. Here’s how I do it:

  1. Binary to base64
  2. Template column to render the “link”
  3. Display in a webview component

3 Likes

@Robert_Petitto did you ewr try to call an API with this in the body?