How convert base64 to a jpg file

Hello,

I need to convert a base64 string to a jpg file. 

I'm using wpf in Visual Cobol.

Thanks

Alberto Ferraz