cancel
Showing results for 
Search instead for 
Did you mean: 

Where is MymeType_HTML???

mikool74321
Champ in-the-making
Champ in-the-making
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);
1 REPLY 1

morpheus
Champ in-the-making
Champ in-the-making
why don´t you write it by yourself like  "text/html" ? where the problem ?
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.