i'm trying to encode an image into text and i've tried base64' and the result is a LARGE 'raw' text.

is there any other algorithm (?) which will give me a smaller 'raw' text!?

tnx in advance

  • What kind of image ? What needs to happen to the text after its converted back to an image ? What are the constraints on "text"?
    – davidgo
    Jun 13 '16 at 2:14
  • you get that encoding it this way would increase the size of the data, right? just taking the HEX of the original image is more than sufficient, and doesn't introduce additional cost in storage. Jun 13 '16 at 2:31

ASCII85 (for example used by the btoa utility) is more efficient then Base64 and uuencode.

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.