Q
Q
qwerty191062015-12-07 16:23:50
css
qwerty19106, 2015-12-07 16:23:50

How to get the base64 code of the background image of a div that is set via a one-time link?

There is a div on the page that has a background image set to it:

<div style='width: 300px; height: 300px; background-image: url("http://URL_к_картинке")' /div>

If I call $("div").css('background-image') I get only the url. The server is configured so that the image url is one-time.
How to get its base64 code?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MNB, 2015-12-07
@MNB

If only client-side JS, then no way

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question