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.
Hi kppatel,
You can get the content of the file ( byte ) using API, and then use javascript in a html widget to show the content as you can do in any webapp
Cheers
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
byte getDocumentContent(String storageId) throws DocumentNotFoundException
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