Hi Aspose team,
I am having some problems when parsing a word that has an image inside. What I want is to get the image data, upload to my server and make a link, but it seems it is not working properly.
My aspose version is 10.5 and what I am doing is using a imageSavingCallback like this:
public void imageSaving(ImageSavingArgs e) throws Exception {
Shape s;
String url;
s = (Shape)e.getCurrentShape();
if(s.hasImage() && s.getImageData().isLink()==false){
url = UploadImageUtils.uploadImageArray(s.getImageData().getImageBytes());
s.getImageData().setSourceFullName(url);
s.getImageData().setTitle(url);
s.getImageData().setImageBytes(null);
e.setImageStream(new ByteArrayOutputStream());
e.setKeepImageStreamOpen(false);
}
}
when I get the document text I can see the image src attribute points to the imageFileName aspose gives to that image. Is there any solution to this.
Thanks in an advance!!!