[closed] Uploading new artifact does not work correctly.
Eric Ballance (13●4)
| asked Mar 06 '18, 4:45 p.m.
closed Mar 09 '18, 2:18 a.m. by Ralph Schoon (63.6k●3●36●46) Hello. I'm using the code below to upload an artifact to an asset but every time I test it the web page is blank. completely empty. I end up having to delete the asset and start over. Does anyone know the correct way to add a file artifact to an asset??
private void addFile(File f, RAMAsset currentAsset) {
LocalFileArtifact fileArtifact = new LocalFileArtifact(f);
RAMFolderArtifact root = (RAMFolderArtifact) currentAsset
.getArtifactsRoot();
root.addArtifact(fileArtifact);
RAMSession session = this.getPolicyContext().getRAMSession(); session.queueAssetForPut(currentAsset);
session.putAssets(new NullProgressMonitor());
}
|
The question has been closed for the following reason: "Question is off-topic or not relevant" by rschoon Mar 09 '18, 2:18 a.m.
One answer
Rational Asset Manager issues should be posted on the dW Answers forum.
|