0

My binary image is in DB on an address: http://localhost:8000/pictures/f31289ae-0491/data

I'm using React and I would like to display image on the page

I know there is a lot of similar questions, but I couldn't find solution to my problem.

png Image example

5
  • 1
    try this: binary data to image Commented Mar 26, 2018 at 8:47
  • I tried that but still without success, and with error invalid url Commented Mar 27, 2018 at 7:29
  • can you create a fiddle and put the binary data in a variable use the same the way suggested in the another answer, because it should work. Commented Mar 27, 2018 at 7:37
  • That would be something like this: jsfiddle.net/perija/bhd1kom3/7 This.state.image I'm getting from db Commented Mar 28, 2018 at 7:26
  • 1
    i think, that data is not base64, check this ques for same data: stackoverflow.com/questions/29343196/… Commented Mar 28, 2018 at 7:53

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.