Hi Team!,
I Convert the .pptx file to .ppt to use the following code,
String ippath = path+fArr[i].getName();
String outpath = path +fArr[i].getName().substring(0,fArr[i].getName().indexOf("."));
outpath+=".ppt";
sourceFilePath = new SmbFile( ippath,
authentication);
sourceFilePath2 = new SmbFile( outpath,
authentication);
PresentationEx pres = new PresentationEx(sourceFilePath.getInputStream());
pres.write(sourceFilePath2.getOutputStream());
here ippath containes the .pptx file path
and outpath containes the converted file storing place.
But THE MAIN PROBLEM IS when i am using the converted ppt, for creationg the thumbnails folder and images in that time i face the OUT OF MEMORY HEAP SIZE ERROR IS COMEING PLS give solution its very urgernt
for creating the images in thumbnail folder i use the following lines of code....
presentation pres = new Presentation(inputStream);
Slide slide = slds.get((slideCount));
image = (BufferedImage) slide.getThumbnail(new Dimension(390, 430));
ImageIO.write(image,
ModuleConstants.JPEG,
new File(folderPath.getPath() + ModuleConstants.FOLDER_SEPARATOR + (slideCount+1) +
ModuleConstants.JPG));
pls respod quickely...........
Thanks in advance