I am creating an extension for Chrome. Is there a way to capture an image from a URL and write it to local storage so that the extension can display the image even if the user is not connected to the network?
You can encode it in base64 ( function here ) and then save the result in localstorage, for example.
Source: https://habr.com/ru/post/1383141/More articles:https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1383136/wkhtmltopdf-seems-to-need-phonon-needs-qcoreapplicationapplicationname-why&usg=ALkJrhh0zKMmqzzUTyyr_q3cu0y6NEFPLQCreate new HTTP authentication credentials using PHP instead of shell - phpAnt runtime output encoding? How to use UTF-8? - javaGetting error with sublist - javaCompiling a subset of Boost Libraries for Android NDK - c ++Android: using MotionEvent to drag and drop positions in a custom ViewGroup - androidSTL vectors and the new operator - c ++Is it possible to start (and stop) a stream inside a DLL? - dllDisable form rising up - formsMKCoordinateRegion Distance between center and borders - objective-cAll Articles