P
P
panterr922017-10-02 20:11:33
JavaScript
panterr92, 2017-10-02 20:11:33

Is it possible to write a file (image) to the session and transfer it in JSON format via AJAX?

Actually, it is necessary to receive an image from the user, but its processing, or rather transfer to the server, is planned according to the site's logic only after two or three pages. Is it possible to somehow "remember" the loaded image in memory?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
oh, 2017-10-02
well @AnneSmith

make all the moves on one page or change the logic and take the image before sending

T
twobomb, 2017-10-02
@twobomb

As an option, convert the image to Base64 and store it in localStorage. And when you need to get it and transfer it to the server, and the server already converts back ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question