Question Locked

Is there a more efficient encoding scheme for iOS 18.5 so that photos are r

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Is there binary-to-text encoding scheme to get less characters count than Base64 to encode data, such as images or files, so that it can be safely transmitted over text-based protocols like HTTP or email?

Because I am attempting to add photos such as building layout and visit hours to contact to alleviate my senior friends from browsing websites and also consumes mobile data.

Unfortunately iOS 18.5 contact app doesn’t allow photo, I am trying photos as base64 url. After adding two base64 url, contact app starts freezing.

binary-to-text encoding scheme to get less characters count than Base64? I suspect contact app freezes under excessive characters. I am using photo instead of webpage for helpers who shun websites. Since contact app lack photo field, I am adding photos as text. After adding two base64 url, contact app starts freezing.

Is there a more efficient encoding scheme for iOS 18.5 so that photos are readable with less characters count than base64?

3 replies

by kees_b edited

https://en.wikipedia.org/wiki/Base64 tells how it works.

Base256 is meaningless, because it would be identical. Base128 would save 12.5% space, but result in characters that won't be accepted by the contact app. So Base64 is the best you can use to encode an image to text.

E-mail encodes files like pictures, zip-files and executable programs already into normal text with a comparable scheme. Any open source mail-program like Firefox can tell you all the details.

How would your senior friends (via WiFi or mobile data) see the pictures that are encoded in your contact data? E-mail seems a more easy way to send pictures if you don't want to put them on a website.

by thismarkjohnson015

Base64 is already one of the most compact text-safe encodings. You could try Base85 (Ascii85) — it’s about 25–30% smaller, but not all apps handle it well. Still, iOS Contacts likely freezes due to text size limits, not the encoding itself.

by gracemiller8477 edited

Yes, there are more efficient binary-to-text encoding schemes than Base64 that reduce character count, such as **Base85 (Ascii85) or Base91**, which can encode the same data in fewer characters while remaining text-safe for HTTP or email. However, embedding even these in the iOS Contacts app as text is likely to cause freezing, since the app isn’t designed to handle large encoded images. A better approach is to host the images online and include **short URLs or QR codes** in the contact notes, which is much lighter and avoids app crashes while still being accessible to your senior friends.

This discussion is closed to new replies.