Hi Experts,
I am writing a business logic in webservice (Not the DFS). In this webservice we have two formats of content(JPEG and TIFF) as byte array. i need to write a DFC code to create document with JPEG format and then add the rendition of TIFF document.
I have created the IDfDocument object and set the content of JPEG document. Like below...
ByteArrayOutputStream baos =new ByteArrayOutputStream();
baos.write(<Byte Array JPEG content>);
object.setContentEx(baos, "jpeg", 0);
object.save();
Now I want to add the rendition on this object using byte array of TIFF document. but the object.addRendition() method required File as parameter. I can convert File from Byte Array and set this as rendition and then delete the file but I cant do this as this file contain secure information.
Please suggest how can I add rendition using byte array.
Thanks,
Santosh