Hi Carsten, > * Instead of uploading the content first and then giving a reference in > dsLocation (2 web service calls with additional (temporary?) storage) it > would be nice to supply the content directly, maybe in place of the > dsLocation (1 web service call and no need for additional storage). > This can actually be done now through the REST API ( https://fedora-commons.org/confluence/display/FCR30/REST+API#RESTAPI-addDatastream). The reason this isn't available through the SOAP API is because SOAP with attachments has not yet been implemented ( https://fedora-commons.org/jira/browse/FCREPO-102) and there are limitations on the size of files that can be sent when included in the SOAP wrapper.
> * I’m not quite sure why the restriction that inline content must be XML. > This seems to have several drawbacks: Not every content is natively XML, The > XML currently gets parsed on the server side and then re-serialized which is > a seemingly unnecessary performance overhead, the previous item seems to > also break checksums in some cases. Wouldn’t it be much easier to just > accept any input, XML encode non-XML characters on the server and just write > it into the FoXML? > Due to the fact that the FOXML needs to be processed to perform many tasks, including arbitrary-length binary sections would hinder performance significantly. XML content is allowed because it is generally not very large, but it is parsed in advance to ensure that it fits into the FOXML correctly. If you need to see your content as an all-in-one FOXML object you can do so by exporting it with the context attribute set to "archive." This will base64 encode all managed datastreams and include it in the XML. Bill
------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://www.creativitycat.com
_______________________________________________ Fedora-commons-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
