Hi
Is it possible to get a document as a binary/byte array or something, file from CMOD.
After getting the binary file/byte, I would use my java classes to interprete and open the document with the correct viewer.
Is there an API that can help me with this?
Thanks
Pankaj.
Hello Pankaj,
I'm not sure to understand your question... I mean, you can save binaries in CMOD (like MP3, ZIP, DIVX, ...) so it means you can also retrieve them as is.
What do you mean exactly?
Cheers,
Alessandro
Any retrieval from CMOD is a series of bytes. All data is a series of bytes, when you think about it.
If you want to pull data into a program via API, then use the API and store the retrieved data locally (in memory or in a file) for processing.
I'm with Alessandro here -- I have no idea what you're actually trying to achieve.
-JD.
If I have understood you question correctly, there is a way where you can get the mimetype of the document you are downloading. But this is only possible if you have different Application Groups for different formats of document. If you have specified the format of the document in Application Group as user defined then there is no way to identify the type of document. A work around will be to add a TLE value of File Format and then decide the type of viewer using it.