☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

FileInput widget string format

Community Support
Jack_Beanland
Jack_Beanland

Hi,
I’m playing around with the new FileInput widget in the 1.3.0rc2 release and struggling to figure out what to do with the imported data.

Essentially, I import a file, lets say a json file, and fileinput.file == something like:
data:application/json;base64,ewogICAgInBlcnNvbiI6IHsKICAgICAgICAiYWdlIjogMjIKICAgIH0KfQo=

I understand that the second part is the base64 encoded string but my question basically is: is there some obvious library or command I’m missing that I should be using to split this up or should I just write a simple parser to do it.

It seems that the panel widget that this one came from had 2 attributes, value(bytes) and mime_type(str) whereas the bokeh version has this combined string.

I am spectacularly overthinking this and should just split by the comma?

Thanks!

⌁   Link to post

End of archived discussion · Replies are disabled