How to Update the Existing image in mongo
Hi All,
I am storing the images in the mongo, I referenced this post to store image in mongo
I observed that when someone edit the resource to change the image ,instead of updating the same image in mongo, it creates the new entry.
I want to update the same image when that image gets changed from request. I tried updating the imagestream using ValueMap, but that does not work
final ModifiableValueMap modProps = imageResource.adaptTo(ModifiableValueMap.class); modProps.put("nt:file", jpegStream);Does anyone know how to update the existing image uploaded in mongo?
Thanks,
Monika