Hi All,
My requirement is very simple but its showing some problem.Biztalk has to pick a .pdf file and drop it in a folder which it creates dynamically.Everywhere its working fine but when i am trying to open that file from the destination folder (dynamically created) its showing the following error.There is no problem in the file becoz its opening from the Source folder (from where Biztalk is picking the file), there is some problem in the Biztalk only.
I have to fetch the filename and filepath also,for that i have created one schema having two field element as filename and filepath.I have written following code in the MessageAssignment shape.FilePath and FileName anyway i am getting but that file is not opening.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
XmlDoc = new System.Xml.XmlDocument();
XmlDoc.LoadXml("<ns0:FileMetaData xmlns:ns0='http://ReceiveMail.FileMetaData'><FileName>FileName_0</FileName><FilePath>FilePath_0</FilePath><ContactType>ContactType_0</ContactType></ns0:FileMetaData>");
MessageOut =XmlDoc;
MessageOut.FileName = MessageIn(FILE.ReceivedFileName);
MessageOut.FilePath = strFilePath;
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Error which i am getting:
"Adobe reader could not open '123E.pdf' because it is either
not supported file type or because the file has been damaged (for example,it was sent as an email attachment and wasn't correctly decoded)."
I am not getting any idea of how to solve this error.Can anyone suggest me regarding this..
Thanx in Advance.
Sanjeev