1
Blob firstNameBlob = Encodingutil.base64Decode(ApexPages.currentPage().getParameters().get('firstName'));
firstName = firstNameBlob.toString();

Iam using in my ApexController Page . Please Explain Above two lines

1

The first line takes the encoded URL parameter 'firstName', decodes it and puts it in the Blob variable 'firstNameBlob'. The second line converts it into a String and stores it in a variable called firstName.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.