on 01-31-2007 2:33 PM
I have a requirement where I need to upload / download document into / from KM Content Server from my WebDynpro Application.
Is it technically possible and if Yes, can I get any Sample code for this.
Hi Tahzeeb,
yes it is possible, for reading just put file into KM, and use java code in order to open the file (in the path cm is the root of KM):
FileReader f = new FileReader("/sapmnt/PCP/global/config/cm/etc/zdati.htm");
BufferedReader in = new BufferedReader(f);
String s = new String();
//Reading file by row
while ((s = in.readLine())!= null){
....
}
in.close();
f.close();
Do not forget the IOException management. For writing it's the same, just use the java code in order to create a new file in the right directory under KM, and then fill it.
Hope this help,
Vito
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.