Base 64 Encoding between ASP.NET and OEngineServer (OpenInsight 32-Bit)
At 26 JAN 2009 04:34:36PM Fredrik Berling wrote:
Hi I am using Oi4Web and ASP.NET to build a website. Since the communication between ASP.NET and OEngineServer is done by strings I use a delimiter to send multiple values.
If I want to invoke the "GETRECORD" function with three arguments I write something like this: OiCall("GETRECORD#arg1#arg2#arg3").
However, if any argument would contain a "#" this would cause errors.
So I want to encode the fields/arguments.
I have tried encoding them with base 64. But the base 64 encoding doesn't seem encode the same way for OI as for ASP.NET??
Does anyone know of a solution to this, or possibly another way to solve the problem?
At 26 JAN 2009 05:00PM Bertil Strom wrote:
I realized that the error occurs not because of the encoding, but because all lower case letters gets transformed to upper case when they come in as parameters to the "listener" function I call.
So if I call listener(arg) with listener("R0VUUkVD#Mg=
then arg will be R0VUUKVD#MG==
At 26 JAN 2009 05:32PM Bertil Strom wrote:
Well it turns out I ran DEBUG in the OI code that I called from ASP.NET. What a rookie mistake ;)
Sorry for the posts.