RE: End of PHOTO Data
Sharanaiah Srikanth-A19702 <[email protected]> Mon, 26 Apr 2004 19:37:38 +0530
| Newsgroups | gmane.ietf.vcard |
|---|---|
| Message-ID | <[email protected]> |
So, do you mean to say that the encoded BASE64 data will have a "=" at the end of every line? "=" has got a special significance in the BASE64 algorithm. It is used as padding sequence at the end of data. I think it should be SPCRLF. But how about the case of binary inline data. How do we detect the end of data? The data itself may contain SPCRLF. Basically, my question is how do we distinguish between End of data and End of a line. Thanks, Srikanth -----Original Message----- From: [email protected] [mailto:[email protected]]On Behalf Of Jasbir Khatkar Sent: Monday, April 26, 2004 7:12 PM To: [email protected]; [email protected] Subject: RE: End of PHOTO Data Hi, I believe the CRLF sequence should be properly line-wrapped (i.e. "=\r\n" or is it " \r\n" SPCRLF???) the distinction should then be made when processing the data that a line-wrap does not indicate the end of the property data stream. Regards, Jasbir Khatkar -----Original Message----- From: [email protected] [mailto:[email protected]]On Behalf Of Sharanaiah Srikanth-A19702 Sent: 26 April 2004 14:05 To: '[email protected]' Subject: End of PHOTO Data Hi, If CRLF is regarded as the end of Property data, then how do we determine the end of property data in case of PHOTO property, where the photo property has inline BASE64 encoded data? Cos BASE64 encoded data has a CRLF sequence after every 76 chars. also there is no indication about the length of the encoded data or end of the data. So how do we determine the End of Photo data. PHOTO;ENCODING=BASE64;TYPE=GIF: R0lGODdhfgA4AOYAAAAAAK+vr62trVIxa6WlpZ+fnzEpCEpzlAha/0Kc74+PjyGM SuecKRhrtX9/fzExORBSjCEYCGtra2NjYyF7nDGE50JrhAg51qWtOTl7vee1MWu1 50o5e3PO/3sxcwAx/4R7GBgQOcDAwFoAQt61hJyMGHuUSpRKIf8A/wAY54yMjHtz ... Any insight into this will be helpful. Thanks, Srikanth -------------------------------------------------------------------------- Hi, Unless folding is used, it is assumed that a property will terminate at the end of the line. Hence the discovery of a CRLF (x0Dx0A) sequence indicates the end of the property data. Regards Jasbir Khatkar -----Original Message----- From: owner-imc-vcard@xxxxxxxxxxxx [<mailto:owner-imc-vcard@xxxxxxxxxxxx]On> Behalf Of Jacky Cheung Sent: 02 October 2003 04:36 To: vCard Subject: end line char Hi, Is there any standard of the end char in the end of define or decalration of a property? for example, BEGIN:VCARD What should be the chars which after "VCARD" ? x0Dx0A? Regards, Jacky Cheung