0

Is there a way to encode and decode base64 image string that would be cross compatible for multiple language? I'm looking at .NET, Java and PHP. If not are there other work arounds?

7
  • 2
    base64 is base64. It is the same across all languages. Commented Oct 28, 2011 at 13:00
  • @Oded: I heard that php decode does not work with C# encoding of base64 on this link stackoverflow.com/questions/257462/… Commented Oct 28, 2011 at 13:02
  • The link seems to discuss issues with base64 being passed through on the URL. Commented Oct 28, 2011 at 13:04
  • @Oded: Are there other ways to share images to different languages aside from base 64 string? Commented Oct 28, 2011 at 13:10
  • @Oded: wouldn't it be difficult if dealing with a lot of images? Commented Oct 28, 2011 at 13:14

1 Answer 1

1

There are a few variants of base64 (basically the same, but small changes). See: http://en.wikipedia.org/wiki/Base64#Variants_summary_table

Just pick one and have them all use it.

It's easy enough to use search/replace to change the char 62 and 63 if necessary.

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

Comments

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.