How to send a pdf so that it isn”t readable

Binary Data in JSON String. How to send a pdf so that it isn’t readable JSON format natively doesn’t support binary data. Feed for question ‘Binary Data in JSON String.

35a7 7 0 1 1 1. 9 2 2 2h16a2 2 0 0 0 2-2v-4. 44A2 2 0 0 0 15. 68A1 1 0 0 1 5. 12a1 1 0 0 1 . M9 1a8 8 0 1 0 0 16A8 8 0 0 0 9 1zm.

69a4 4 0 0 0-. 29 0 0 1 1. 34 0 0 0 . 8 0 0 0 2.

07A8 8 0 0 0 8. 8 0 0 1 0-3. 83a8 8 0 0 0 0 7. 3A8 8 0 0 0 1. 77 0 0 1 4. An obvious method to escape binary data is to use Base64.

However, Base64 has a high processing overhead. One use case for this is the v0. You create data objects via a REST-Webservice using JSON, e. Are there better ways and standard methods to encode binary data into JSON strings?

For upload: you’re only doing it once, so it’s not as big a deal. Case in point: if a Javascript string has a maximum length of 100k chars, you can only represent 37. 5k bytes of data using base64, not 75k bytes of data. These numbers may be a bottleneck in many parts of the application, e. Use comments to ask for more information or suggest improvements.

Avoid answering questions in comments. 64, it’s more expensive to compute, and implementations are less common than for base64 so it’s probably not a win. Base91 is bad idea for JSON, because it contains quote in alphabet. 85 is more than 13 times slower than b64. Combine this with gzip compression if you want.