Answer the question
In order to leave comments, you need to log in
How to convert base64 url to image to https://...?
There is a strange image link (captcha) in data:image/jpg;base64 format . How can I get a NORMAL link (format: https://...)?
I do not consider the option of downloading the picture and uploading it to the hosting, unfortunately.
The link itself:
data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAA3ASwDASIAAhEBAxEB/8QAHAABAAMBAQEBAQAAAAAAAAAAAAYHCAUECQED/8QANhAAAQMDBAECBQMCBAcAAAAAAQIDBAAFEQYHEiETCDEUFSIjQTIzURYkFydSYjQ3QmGBhLT/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8A1TSlKBSlKBSlKBSlKBSoPuhuJbtuLZFuV6gXKTBkPfDhyElpXjcwVAELcSewFe2f0nOOs+/QOtbLruwi76dedejhzwupdbLa2neKVFtWeiQFp7SSP4JoJTSlKBSlQfcTceyaE081e7kJM2C5NMAfABDpDo8nIHKgOi0tJ7yCMYoJxSobtlr617i2J+72WPNYjMyVRVploSlZWEIVkcVKGMLH5/mplQKVhm2bkap0jvatGoNW3K4W6DeXYs4yHXfApryKbccEdKsDAJUlIBAIGAcYrXuidcac1xFlP6Yujc9uO4G3glC21tkjIylYCsHvBxg4P8GglNKVn+6eof5TuW7pO66YEFtq5CEufJuPiCGi4AHyktdJKSHPfGD747oNAUpSgUpSgUpSgUpSgUpSgUpSgUpSgUpSgUpSgUpSgUpSgUpSgUpSgp31UWM3vZ+4upbkuyLY61PbQwM5wfGsqGD9IbccUfbHHOcA1XnokvK1RtUWV2Uz421szGIp4heVBSHVj/qI+lkH8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AMoBI+2Ktbb/V0mTp2wuX2RHuLc5loN3+DhMOQ8rCfGpJwtp3yckdoCSoJGUrWGREPVran7ztxbo8R2E24i7NLJmTWYqMeF4dLdUlJPftnPv/BoJlsP87/wpsf9VfMvnP3/AD/MvJ5/33OPLyfV+njjP4xVgVm70s/1HZNuJDTWlZzrb89U5L0l1EZDzCmWv2eXbizjKchLR/LoxV8WO9xrup9DbcmLNj4+IhymS060TnHR6UnKVgOIKm1FKuKjg0HZpSlApSlApSlApSlApSlApSlApSlApSlApSlApSlApSlAryzPiDFeERxpqQpKktuOoLiUqx0SkFJIB/GRn+RSlBiW8+mjX0CG0/DFpui1rCPDEllCgME8j5UoTjrHvnsde+Ld2R9PyNH3c33V78G43KOtKoDMYqUwyfw6eSQSvPsMYTjPZxxUoND1jj1gWRywbiWfU9uWIrtyZCvK06sOiQwUjyf7cIUyBxPuknAPZUoNcWl+TJtMR+4xPgZrjKHJEXyBzwLKQVN8x0rBJGR74r30pQRFvbvSLV6g3RnTtubmwWQxFKWQG2Eh0ugob/QlXNRVzA5dnuu/aLbCtFvag2uHGhQ2uXBiM0G205JJ4pHQyST/AOaUoPfVT747XubmfJIqXY0NmH5iqaorU6yVePAS0PpcSeJBBKSDwIOApK1KCSbd6KY0jt5C0lLeausZht5DqnWAlLyXHFrUlTZKhjDmMZOa/sNB2NQDLzUmTbE/otUiSt2Eg/wGVHiUjCOLZBQ3wBbSg5JUoJdXHvlp+Y+KTEf+EusTPw0sJ5cOWOTa05HNpWE8kZGcJIKVpQtKlByfnWord9m5aXlXJ1PYlWmRH8LiR1yKH3W1tqOCeA5gAj7ijnHetkt2XAakvwJMB5ZVmNJU2XEEEj6i2pSex30T7/z1SlB0KUpQKUpQKUpQKUpQKUpQKUpQKUpQf//Z
Answer the question
In order to leave comments, you need to log in
You can parse the page that generates the captcha, get this line with a script, extract the BASE64 code from it, decode it and send it to the browser with the Content-type: Image/JPEG header.
For example like this:
<?php
$content=вы_тут_сами_получаете_строку_с_картинкой().// Регулярным выражением или построчным чтением страницы.
$base64=explode(";base64,",$content);
$base64=$base64[1];
header("Content-type: Image/*jpeg");
echo base64_decode($base64);
foreach()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question