03-04-2009 08:05 AM
properties.put(ContentModel.PROP_CONTENT, new ContentData(null, MimetypeMap.MIMETYPE_IMAGE_JPEG, 0L, null));
MimetypeMap.MIMETYPE_IMAGE_TIFFas it does not exists
03-04-2009 08:14 AM
03-04-2009 12:10 PM
File outputfile = File.createTempFile("file", "aux");
outputfile.createNewFile();
ImageIO.write(Image_Content, "tiff", outputfile);
ContentWriter writer2 = getContentService().getWriter(this.newNodeRecorte.getNodeRef(), ContentModel.PROP_CONTENT, true);
// set the mimetype and encoding
writer2.setMimetype("image/tiff");
writer2.setEncoding("UTF-8");
writer2.putContent(outputfile);
// Destruimolo ficheiro final
outputfile.delete();
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.