react native - Can a GraphQL server return images? -


i'm working on react-native app, , wondering if graphql can return image file opposed json, i.e. content-type - (image/jpeg etc).

<image source={{uri: 'http://localhost/graphql?query{getimage(imageid)}'}}    style={{width: 400, height: 400}} /> 

is possible? or have create separate non-graphql server achieve this?

graphql servers can return images. if you're looking graphql client image handler, check out library.

the way scaphold handles appending image using formdata , in variables references key image stored. on graphql server, can have piece of middleware plucks image off of key , can handle wish.

here's how work client.

hope helps!


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -