thanks for the help.
ive tried your code and its working.
but when i tried it the way ill will use it, its still has the problem i mentioned above.
heres what i want to do
1. the base64 value is a string query. i mean its part of the url.
2. i only need to decode the ecripted base64 string.
thanks again. hope you can help me.