HF RL Explorer

Task: Save a Base64 String as an Image Using Ruby

Task: Save a Base64 String as an Image Using Ruby: a task in Terminal-Lego-15k (Harbor dataset). You need to write a Ruby script that correctly decodes a base64-encoded string and saves it as an image file. This is a common requirement when working with APIs that return images as base64 strings…

The task

You need to write a Ruby script that correctly decodes a base64-encoded string and saves it as an image file. This is a common requirement when working with APIs that return images as base64 strings (such as shipping labels, QR codes, or other generated images).

Part of PrimeIntellect/Terminal-Lego-15k.