Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Decode image URL extract from jsoup using Java [duplicate]

currently i'm trying read some website content using jsoup. I got following result for Image Url.

<img alt="" src="**data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==**"/>

how do i get the real image Url of this image

like image 809
Amal Madawa Avatar asked Oct 20 '25 04:10

Amal Madawa


1 Answers

The image has been encoded. You cannot get the URL of the image , but rather you will be able to use base64 utils to get the image directly . This post will give you more information (Decoding Base64 Images)

Online base64 converters can decode this string and you can save this decoded data as .gif and be able to open in a image editor / browser

like image 193
Ramachandran.A.G Avatar answered Oct 22 '25 18:10

Ramachandran.A.G