i m using Bonita 6.3 community version .
i want to view online attached document instead of it download to user's local drive .
is it possibly in community
and how to achive.
This will return the byte[] of the file, with this data in a variable, you will be able to show in html. Only do a quick search on Google (or your fav search engine...) about how to show a byte[] in html. Be careful about browser compatibility
Comments
Hello Cheers,
Thank you so much for your reply . i m totally new in this environment . if possibly pl describe in detail . it would be appreciable
Thanks again kandarp
Hi kppatel,
There is this method in the API (ProcessAPI). http://documentation.bonitasoft.com/javadoc/api/6.3/index.html
return processAPI.getDocumentContent(getLastDocument(processInstanceId,"documentName").getContentStorageId());
This will return the byte[] of the file, with this data in a variable, you will be able to show in html. Only do a quick search on Google (or your fav search engine...) about how to show a byte[] in html. Be careful about browser compatibility
Here you have more info about docs, may be is useful too http://documentation.bonitasoft.com/handling-documents
Note 'Cheers' is not my name :) is Pablo
Thanks Pablo , :) apologize for Cheers :P