5

I want to send images as Base64 encoded strings. However, the size of each generated string turns out to be very large. My question is therefore, does GraphQL restrict the scalar String to a certain length, i.e. is it possible for me to send my images as strings using GraphQL?

1 Answer 1

5

As per last available specs, GraphQL does not restrict the scalar String to a certain length, i.e. it's possible for you to send it as a String.

1
  • 4
    I have tried it with a 30MB image file converted to base64 string. It's working fine. Thank you.
    – nymphadora
    Commented Dec 1, 2019 at 7:44

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.