8
Views
5
Comments
Passing Base 64 code in iframe gives error
Question
Application Type
Reactive

Hi All.

I am displaying pdf by first converting it into Base 64 and then passing it in iframe using src=

"data:application/pdf;base64,"+FileData

It is sometimes not opening the file. Instead all the base 64 code gets viewed in the screen without iframe.


How to solve this issue?

mvp_badge
MVP
Rank: #89

Hi Shubham,

I tried the same in a sample RW application and it is working as expected in my case.

See this sample app - IFramePDFView Demo

Refer the attached .oml file

Hope this helps you!


Kind regards,

Benjith Sam

RWALabIframePDF.oml

Rank: #373

Hi Shubham,

I hadn't tried this in a Reactive app yet, so I did a little test. This showed the PDF without any issue.
Can you maybe share an OML in which this issue occurs?

Regards,
Lennart