Quantcast
Channel: Aspose.Email Product Family
Viewing all articles
Browse latest Browse all 1367

Problem with loading .EML file into MailMessage Object using Aspose.Email for java.

$
0
0
Hello Team,

I have to load .EML file into MailMessage but i got Java heap space exception.I have to convert mbox file into PST file.I am using Operating System "Mac OS X 10.10.5 " and language java.
My source .EML file size is of 42MB so it get fail.

***short source code


f_objMailMessage = MailMessage.load(f_ObjFile.getAbsolutePath()) ;


 *****


Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

at com.aspose.email.system.io.MemoryStream.setCapacity(Unknown Source)

at com.aspose.email.system.io.MemoryStream.b(Unknown Source)

at com.aspose.email.system.io.MemoryStream.write(Unknown Source)

at com.aspose.email.mw.write(SourceFile:321)

at com.aspose.email.dv.a(SourceFile:167)

at com.aspose.email.agh.a(SourceFile:377)

at com.aspose.email.agh.a(SourceFile:252)

at com.aspose.email.agh.a(SourceFile:265)

at com.aspose.email.agh.c(SourceFile:157)

at com.aspose.email.MailMessage.a(SourceFile:1402)

at com.aspose.email.MailMessage.b(SourceFile:1316)

at com.aspose.email.MailMessage.a(SourceFile:1238)

at com.aspose.email.MailMessage.load(SourceFile:1223)

at SysTools.MBOX_Reader.main


Viewing all articles
Browse latest Browse all 1367

Trending Articles