why can we encode bitmaps from RAM but not decode?

Just starting out? Need help? Post your questions and find answers here.
tj1010
Posts: 218
Joined: Wed May 27, 2015 1:36 pm
Contact:

why can we encode bitmaps from RAM but not decode?

Post by tj1010 »

Why does EncodeImage() exist but no DecodeImage()? It'd be awesome to store BASE64 encoded images on a back-end in a DB and load them in RAM over HTTP. I know it can be done by modding HTTP headers and outputting the binary with a CGI script, but not having to consume back-end CPU would be great.