# Perspective Download base64 file

**URL:** <https://forum.inductiveautomation.com/t/perspective-download-base64-file/43885>\
**Category:** Ignition\
**Created:** [February 26, 2021, 7:16pm UTC](https://forum.inductiveautomation.com/t/perspective-download-base64-file/43885 "2021-02-26T19:16:44Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [February 26, 2021, 7:21pm UTC](https://forum.inductiveautomation.com/t/perspective-download-base64-file/43885/2 "2021-02-26T19:21:05Z")

</div>

I would use a Java function to convert the base64 to bytes; there's a lot of layers of translation involved if you use a Jython method.  
Try this snippet to get a `byte[]`:

> [@How to init myLongArray as array(java.lang.Long, \[myLongValue\])](http://forum.inductiveautomation.com/t/how-to-init-mylongarray-as-array-java-lang-long-mylongvalue/31922/7):
>
> from com.inductiveautomation.ignition.common import Base64 bytes = Base64.decode(string) No muss, no fuss.

---

_[View the full topic](https://forum.inductiveautomation.com/t/perspective-download-base64-file/43885)._
