[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [OASIS Issue Tracker] Commented: (CMIS-279) Content stream could belarger than 2GB
[ http://tools.oasis-open.org/issues/browse/CMIS-279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11771#action_11771 ] Doug Domeny commented on CMIS-279: ---------------------------------- @Florent, you are correct, xs:integer != xs:int. My mistake. That would be why .NET correctly generates a String type property for xs:integer instead of Int32. The definition of length makes sense. It's what I initially assumed. I've been concentrating on the AtomPub binding, which, as I recently found out, doesn't use cmsContentStreamType. However, most of the content I manage is XHTML (character text), which led me to ponder the difference in length between UTF-16 vs. UTF-8 and Unicode vs. ASCII. The following code snippet works. Each character is two bytes. That is, this.stream.LongLength == content.Length * 2. String content = "some text"; System.Text.UnicodeEncoding encoder = new System.Text.UnicodeEncoding(); this.stream = encoder.GetBytes(content); this.length = this.stream.LongLength.ToString(); This issue can be closed. > Content stream could be larger than 2GB > --------------------------------------- > > Key: CMIS-279 > URL: http://tools.oasis-open.org/issues/browse/CMIS-279 > Project: OASIS Content Management Interoperability Services (CMIS) TC > Issue Type: Improvement > Components: Schema > Affects Versions: Draft 0.61 > Reporter: Doug Domeny > > The cmisContentStreamType 'length' is defined as xs:integer. Although rare today, it is possible for a content stream to be larger than 2GB. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]