How to convert Image to byte?

I took screen shot of image and store it as “Screen_shot” in image variable, now i need to convert image variable to byte variable. Can you please any one help in this regards.
Thank you…

Hi @vanithavs

Check out the video link

Regards
Gokul

@vanithavs you can try this module

ConvertImageToBase64.xaml (6.1 KB)

Screenshot.xaml (5.6 KB)
I have above workflow… I need display output in message box (it should be in byte( 0 or 1)).

Screenshot.xaml (7.1 KB)
@vanithavs

Hello @vanithavs
Kindly refer this, you may get some idea

Screenshot.xaml (7.6 KB)
In this workflow all the things are correct but inside for each activity item value should be 0 or 1, I need like this (Byte value).

What does it mean? Need values in Boolean?

It means am getting values as 132, 7, 8, 32 etc. but I need this values as (Ex.) 0, 1, 1, 0 etc.

Sorry for my query,
I want to get image as byte array. I have shared output example below. Please any one help me.
EX:
0xFFD8FFE000104A46494600010100000100010000FFDB0084000906071213121212121210151210120F10100F0F100F0F0F0F0F1512161615111515181D2820181A251D151521312125292B2E2E2E171F3439342D38282D2E2B010A0A0A0E0D0E1A10101A2D1D1D1D2D2D2D2D2D2B2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2B2D2D2B2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2DFFC000110800B7011303012200021101031101FFC4001B00000203010101000000000000000000000405020306000107FFC40039100001040103020305060504030100000001000203110405122131411322510661718191143252A1B1C1233342E1F0156272D17382F153FFC4001B01000203010101000000000000000000000203010405000607FFC400351100010400040208060201050100000000010002031104122131415105132261718191A11432B1C1D1F023E15242627282D224FFDA000C03010002110311003F00F8B6E5DB94485C8292E97A5CAD882A15B1394A8214E40A90AE7D9553072B9404CB063B56E43695FA7C5C28EA09B5A210810E46E225C1178D3521694651192D40C3568A9DF682637940E1AA5EA99B20B567815D9598451730E12E57D045C123CB0BDD34F997B95D4AAB05DE7493AB4AAAE36D28BD54775668F9554A3AB8F2A5B84F36A60D5A8F0E3B2B69E3EE0946A11FA2BB0DC485E661A0ACDD2B04A4523690790F464EF404BCA0DCA06EA552C165171C0A38B0D94D0C14139A2D30B92FD94A97157CC0AA3625142A6DE54DCDE1744C5D3B9425DD9A0A1132CA3E6C721A87C1EA9CC945A9A9974B36CFBCB4D84C6961F8249341E645413D0A4992F82E73E903A934026905B9119CFB284251B4688DA2C2F6D7AABB5C8915229EC510C46BA3553988C31273215CD5EC1D55923542114541149A0E89AC7058E8A8FB2D14D3088DAAE18FDD358D090E242F315B4D4BF39DCA6D21A0926472573C2E0552D8D7A785744110F82C2422CDAA198E574712A76D22B1DFD94AE2DB44E3F954A5C8E178F1C2F64D

Am getting below error in message box.
Message Box: The filename or extension is too long

Hello @vanithavs
Use UiPathTeam.EncodeActivities.Activities.Design activity, you may get your solution
Download the package from manage packages
image

use write line activity to print output

1 Like

Thank you it is working fine for me…

One small query, instead of using this packages any other solution is there? Please let me know…

@vanithavs can use .vb code
Kindly refer this

@vanithavs
Try this

YourString=Convert.ToBase64String(byteArray)

Where YourString is String variable type

Print using Writeline activity

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.