UPDATE: Never mind! The error was coming from one of the modules I wasn't using.
I have two apps:
- A client app that converts Maps to bytes and sends those bytes to the other app which is located on the server.
- The server app converts those bytes back into a map to execute the actions contained within the map.
The issue I'm running into is the following line of code:
Is producing this really weird error:
I have two apps:
- A client app that converts Maps to bytes and sends those bytes to the other app which is located on the server.
- The server app converts those bytes back into a map to execute the actions contained within the map.
The issue I'm running into is the following line of code:
B4X:
Dim Info As Map = Ser.ConvertBytesToObject(Bit.InputStreamToBytes(req.InputStream))
Is producing this really weird error:
javac 1.8.0_131
src\b4j\example\mysql.java:62: error: incompatible types: CookieWrapper[] cannot be converted to InputStream
_info.setObject((anywheresoftware.b4a.objects.collections.Map.MyMap)(_ser.ConvertBytesToObject(__c.Bit.InputStreamToBytes((java.io.InputStream)(_req.GetCookies())))));
src\b4j\example\mysql.java:62: error: incompatible types: CookieWrapper[] cannot be converted to InputStream
_info.setObject((anywheresoftware.b4a.objects.collections.Map.MyMap)(_ser.ConvertBytesToObject(__c.Bit.InputStreamToBytes((java.io.InputStream)(_req.GetCookies())))));
Last edited: