Encode to base64 string

Hello, I need to convert this string “< PovilasJ-Stock-PRD-c46153519-78c85651 >:< PRD-46153519a19e-691f-4ef6-9f83-d64b >” to Base64 string for ebayAPI. Can you help me?

Hi @Povilas_Jonikas

Try:-
Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(inputString))

Xaml:-
Main.xaml (7.2 KB)

If this works for you, please mark this as a solution, so others can refer the same. :slight_smile:

Thanks

1 Like

@Povilas_Jonikas,

Use this logic in Assign activity.

Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes("<PovilasJ-Stock-PRD-c46153519-78c85651>:<PRD-46153519a19e-691f-4ef6-9f83-d64b>"))

Thanks,
Ashok :slight_smile:

2 Likes

Ashok’s suggestion works…

1 Like

Thanks guys a lot! Both of the solutions work just fine :slight_smile:

2 Likes

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