cancel
Showing results for 
Search instead for 
Did you mean: 

Exception Screen Capture decode from database

Hi,

Do you have any idea how to decode screenshot from Exception Screen Capture funcionality which is saved in database table [BPAScreenshot]?

It begins like...
F6MVGJpKd+PbqZuHlFttKw==:[...]


Thanks.
stuffautomation.com
2 REPLIES 2

ErinConnerley
Level 4
That looks like it is likely Base64 String type so you can probably use .Net's Convert.FromBase64String() Method (https://docs.microsoft.com/en-us/dotnet/api/system.convert.frombase64string?view=net-5.0) to get it to a Byte Array (byte[]) which is what Blue Prism's 'Binary' data item type is. From there you could save the Binary Data Item to disk or you could try to force that into BP's Image Data Item type... not sure if the latter will work.

If you write the binary to disk you'll need to probably guess the extension / mime type or use Magic Numbers to do so. (I'd guess bmp or png or jpg) Honestly trial and error is probably the easiest way to know there, magic numbers can be a complex topic.

SteveBoggs
Staff
Staff

To view the Screen Capture in the Interactive Client:

  1. In Control Room, right-click the Runtime Resource responsible for running the Process.
  2. Select the option ‘Show latest screen capture’ to view the screenshot:


If you're looking for a method to directly decode the screenshot data as it exists in the database, you can follow Erin's guidance in the answer above this one.