Hi Everyone,
For the past few days I have been working on a Web Services API that is able to create folders and upload content off my desktop into them. The program works well, but the problem is the only MIMETYPES I have available in my I.D.E are plain text and xml. All of my alfresco content is currently html and I'd hate to redesigning this late. Plain text won't be able to pick up the tags and XML is far too specific. Does anyone know what I'm talking about?? Is constants.MIMETYPE_HTML seriously not an option or have I just overlooked something??
ContentFormat format = new ContentFormat(Constants.MIMETYPE_XML, "UTF-8");
byte[] content = results.getBytes();
WebServiceFactory.getContentService().write(results2[0].getDestination(), Constants.PROP_CONTENT, content, format);