Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
hexin #1
User title: to search knowledge
Member since Mar 2007 · 34 posts · Location: China
Group memberships: Members
Show profile · Link to this post
Subject: problem about setting the vcard
I use openfire as server, and it is set up in a remote computer.
After I change my personal picture. Value of my vcard stored in the database contain the illegal characters "&#0". why this happens?

the  vcard  value is as follow:

<vCard xmlns="vcard-temp"><FN>Amanda</FN><NICKNAME></NICKNAME><Sex/><HomePage/><HomeAddress/><PersEmail/><PersonPost/><Company/>
<Department/><Job/><JobTitle/><BussAddress/><BussEmail/><BussHomePage/><BussPost/><TEL><HOME/><NUMBER/></TEL><T
EL><HOME/><FAX/><NUMBER/></TEL><TEL><HOME/><CELL/><NUMBER/></TEL><TEL><WORK/><NUMBER/></TEL><TEL><WORK/
><FAX/><NUMBER/></TEL><PHOTO><EXTVAL>D:\MiniClient\bin\Debug\Image\photo.jpg</EXTVAL><TYPE>image</TYPE><BINVAL
>/9j/4AAQSkZJRgABAQEACwALAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0
Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAB
aAHgDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhM
UEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqD
hIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEB
AQEBAQAAA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AJDh2XzwQuegB8vvn+VTxyYibZJGXQEkGVcA9hnZ0P0rMXXggwLHU8Zzyspp6+IiuMWOo8HPMchoA043PzIsoLZK4aRfxIylJH
MxYg3EZY9F81MMfX7nYVmf8ACQ85+w6l/wB+5KD4hz/y46l/37koA17KTN2FaVGJBBUSIf0CD+da1x/x7P8ASuUXxIytuFjqGcY5hcj8qdL4ka
5heKSwvDGwwQYGGf0oA6aD/jwT/c/pRWJB4ktIwtiLW93om3d5BCcDP3jxRRcCtFeWsjvE9nMhQnl5lw/UEjGf19asJc26n5InzjHE3p+FcuIYj
IxMaE/vBkqOhBzVhlUSphQMGQcD/YpfY5hp3lynSfao/wDnjL/39/8ArUgvYT0jkODj/XD/AArlBDEG3iNA3HO0Z46fypsRMccmwlckk4459am+l
x21sdd9rj/54y/9/f8A61IbyMDJikA95v8A61clHGjIrsilyASxHJPrT1+SNlXhQeAOlCd1cGdX9rj/AOeMv/f3/wCtSG7jAyYpAPeb/wCtXIJFGRGxR
Sdo5x9KmUCKNljGxTyQvAp3A6n7ZF/zyk/7/f8A1qT7dBt3bH2+vnDH8q5GGNEMcqoqyFRlgMHp61JYIsQiijUJH5q/IowOo7UrgdV9vg/uv/3/A
B/hR9vhwcI5P/XYf4VXS3hMQ/cx8gE/KOeKlVFSKUIoUFiSAMZPrVCGf2mgAL28idM7rhcDmlk1GJ4nEJxJ0BM4IB/KoLi1t5NyPBEyNjcrICDjGM
1S+yWyW42W8S8dkA9aI+9Ll87ETlyxv5XJ45VnjJSWKTJILK4Iz3oqloFtAtiSsEYImfBCDjmiiSs2jRM//9k=</BINVAL></PHOTO></vCard>


The only difference between correct and incorrect value is that incorrect value have some '&#0;' inserting into the <BINVAL> field. But if  openfire and IM client set up in the same computer,this will not happen. Why? Does the illegal character arise  during data transfering over internet,or when storing the data into the database?
This post was edited on 2007-07-26, 14:08 by hexin.
Avatar
Alex #2
Member since Feb 2003 · 4317 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hello,

there is nothing in agsXMPP which differs between local, LAN or Internet connections.
It sends exactly the same data on all these connections.

Please try it on another public Openfire server and also with a different server software than openfire.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS