0

I have an array bit like this:

enter image description here

Which has 763393 character length.

Then I removed [ from the start and ] from the end and also removed "," from the between of bits, now the output goes like this:

enter image description here

But now I don't know how to convert this into an actual image ?!

So if you know, please let me know...

15
  • how you have created the array? Are you using base64? Commented Sep 5, 2022 at 4:38
  • @BhaumikPandhi I'm getting it from a json file which was written by someone else Commented Sep 5, 2022 at 4:40
  • You need to ask them first which format they are using, we can convert the base64 encoded string to an image (the string must have a specific base64 encoded format.) Commented Sep 5, 2022 at 4:42
  • @BhaumikPandhi Does it have a default encoded format? Because he told me that all I need to do is to remove the [] and , then adds an image format (.png, .jpg) at the end of it but now this thing does not work out! Commented Sep 5, 2022 at 4:51
  • before asking, do some research on the base64 image encode/decode using PHP & Laravel. Commented Sep 5, 2022 at 4:54

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.