cancel
Showing results for 
Search instead for 
Did you mean: 

How to get binary data to text?

AtliHarðarson
Level 4
Hey,

I'm using write binary to get file into blue prism, how can I write out the binary data to text data item?

I'm shooting a http message and I need to have the binary file as my body so it's

[
{
File Contents "[BinaryData here]"
}
]

I need it as text, any ideas? Even getting it to clipboard could help me but I haven't been able to solve that either


------------------------------
Atli Harðarson
------------------------------
1 BEST ANSWER

Best Answers

JamesMan
Staff
Staff
Would the LoadTextFile(filepath) function work inside a calculation stage for your use case?

If your file is stored as a Binary Data Type and you need to BASE64 encode it to submet to an API, you can create a code stage within an object to do this for you:
(Taken from the Baidu OCR skill on the Digital Exchange)

17476.png


------------------------------
James Man
Professional Services
Blue Prism
Asia/Hong_Kong
------------------------------

View answer in original post

2 REPLIES 2

JamesMan
Staff
Staff
Would the LoadTextFile(filepath) function work inside a calculation stage for your use case?

If your file is stored as a Binary Data Type and you need to BASE64 encode it to submet to an API, you can create a code stage within an object to do this for you:
(Taken from the Baidu OCR skill on the Digital Exchange)

17476.png


------------------------------
James Man
Professional Services
Blue Prism
Asia/Hong_Kong
------------------------------

Nailed it with that code stage. Thanks a lot James and sorry for the late reply on this!

------------------------------
Atli Harðarson
------------------------------