0

i have images in sqlserver as a binary, how can i display them in reactJs?

i tried the following but doesn't work

<Image source={{ uri: `data:image/jpeg;base64,${results.student_photo}` }} />

i also tried

const base64Image = {results.student_photo};
<Image source={{uri: `data:image/jpeg;base64,${base64Image}`}} />
1

1 Answer 1

1

This may answer your question.

How to display binary data as image in React?

Hope this helps.

Sign up to request clarification or add additional context in comments.

1 Comment

i tried that thaks i displayed it in angular easy, but react is a bit different

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.