If you have questions or if you want to share your opinion about Aware IM post your message on this forum
#54448 by BobK
Mon Aug 03, 2020 7:08 pm
I am trying to expose a REST service in my AwareIM application that accepts a picture, but I can not get it to work.

In my testing, I am sending the picture as base64 encoded. The tomcat log file has the following error: "Invalid format of binary representation for attribute myPic"

Is this possible in the latest version of AwareIM (version 8.4 build 2722)?
If so, what format does the picture data need to be in?
#54457 by Jaymer
Tue Aug 04, 2020 1:00 am
That’s kind of cool.
Looks like you’re gonna solve that Tuesday Bob.
Take an image of how that data structure looks when you get that embedded please. Or attach the uploaded data. Thx
#54462 by BobK
Tue Aug 04, 2020 3:24 pm
THANK YOU SUPPORT.


Jaymer et al.
This will be used to allow users to load their pictures into the system via a REST service.

Here is a small sample of the JSON coming into the service:
{"userid":"BobK","userpic":"bobk.jpg#iVBORw0KGgoAAAANSUhE..."}

userid is so I know whose picture it is.
userpic is a file name for the picture, "#" and the Base64 encoding of the picture.

Who is online

Users browsing this forum: Google [Bot] and 41 guests