on 09-30-2005 6:54 PM
Hello All,
Is there a way to write content such as a text file into the KM.
The only way I can see at this point is:
1. create a resource
2. transfer stringBuffer into an inputStream
3. Update the resource with the inputStream
This feels awkward and I have not tried it yet. Basically I want to write reports into a KM directory.
Points awarded to helpful answers. Thanks!
Cory
createResource always takes InputStreams. Why is that a problem? Just use string.toBytes(encoding) and ByteArrayInputStream to obtain a stream for that.
Just be sure that you're consistent in the character encodings you use when obtaining the byte array from the string (UTF-8 recommended) and when creating the Content object.
Best regards, Julian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.