Hello Team,
I've been using Aspose.Email .NET SDK to create PST file and add mails in it.
Currently i've been using version 6.4, and facing one problem.
An .eml file size of around 20MB has no attachments only body is large no able to load in on 32-bit Operating system.
Its throws OutofMemory exception, i've checked the memory there was 2.7GB free in RAM when i've ran this code and still it gives outofmemory exception.
And i can't share this eml sample as its very confidentails and i don't have any more sample like these.
I am using this following code to load the eml, please correct me if i am wrong :
public static void main(string []args)
{
string f_tmpEmlPath = "C:\\test.eml";
try
{
MailMessage f_Objmailmessage = MailMessage.Load(f_tmpEmlPath, MailMessageLoadOptions.DefaultEml);
}
catch (OutOfMemoryException ex)
{
throws as exception as
Exception of type 'System.OutOfMemoryException' was thrown.
ERROR2016-08-22 04:07:52 - Stack Strace :: at System.Text.Encoding.GetBytes(Char[] chars, Int32 index, Int32 count)
at System.Text.Encoding.GetBytes(String s)
at Aspose.Email.Outlook.MapiPropertyContainer.#=qiP8OpVok2Q7yuit4Iql4hQ==(MapiPropertyCollection #=q7tAf2Qg_ByV3VrGYDRdQmg==, MapiPropertyStream #=qKLLIDwV3v9yl$Csn_oi$Hw==, Int64 #=qN0a2mM5vuNjxPpamY0U4HQ==, String #=q$nvh5jHGFAp1MUzDoH899Q==, Encoding #=qECIdJk_0drAdidMLlrUmkQ==)
at Aspose.Email.Outlook.MapiMessageItemBase.SetProperty(MapiProperty property)
at Aspose.Email.Outlook.MapiMessage.#=qvil_uRAUwSdfmBZEj0Gv0oRysKx$j_271qI0ALWnzdM=(MailMessage #=qtR5AAt_wBk_lHohaLyuS6Q==, MapiConversionOptions #=qD6Wz5UxQck1anBGMn0IJdg==)
at Aspose.Email.Outlook.MapiMessage.#=qo0jXFM82MRjhH3TKoDpLR6ErZ5wvdhU4TSrbAG7Mg50=(MailMessage #=qzqrTnll4dhrN6eS4wIaf9Q==, MapiMessage #=qyQlAlTgVCfwTjDz69zAhFw==, MapiConversionOptions #=qD6Wz5UxQck1anBGMn0IJdg==)
at Aspose.Email.Outlook.MapiMessage.#=qsfyNjeEtuX4HrDz7nV40EQ==(MailMessage #=qtR5AAt_wBk_lHohaLyuS6Q==, MapiConversionOptions #=qD6Wz5UxQck1anBGMn0IJdg==)
at Aspose.Email.Outlook.MapiMessage.FromMailMessage(MailMessage message, MapiConversionOptions options)
}
}
Its happening only on 32-bit machine, on 64-bit machine is working fine and able to load and save.
Really appreciate your help, and you are provide best service.
Looking forward to hear you.
Thank You.
Regards,
Shital