1

I'm working on a JS library which gets images as code. Please take a look at it:

enter image description here

As you know, those selected strings are a long string which make images. Each of them is an image. I mean if you put that long-string as the value of src in <img> tag, then an image will be appeared as an image.

Anyway, I want an image and I need to make it code. How can I do that? Any specific tool?

stack
  • 10,280
  • 19
  • 65
  • 117
  • May i suggest that you use Php to convert Mysql data to JSON? in mysql you just have to type the image file path. – Andre Ramadhan Nov 12 '17 at 07:59
  • 1
    Thats called *base64*, google it and you find many converters... – Jonas Wilms Nov 12 '17 at 08:01
  • @JonasW. I did it, and I found some online converter. thank you. Also I'm wonder why IDEs doesn't have such a tool. An IDE like PHPStorm should add that feature `;-)` – stack Nov 12 '17 at 08:35

0 Answers0