Using urlmon.dll in CodeStage (C#) for checking MIME type of document

Raghav Gupta

New Member
I have to check whether a document is actually a pdf or not and someone hasn't renamed a .png to .pdf. So for this in Blue Prism I am writing a custom code using C# in an object. Actually I have to check the file binary MIME type and for this I am importing urlmon.dll in Code Options as a external reference. But I get a compiler error that urlmon.dll can't be opened. I am attaching the 3 attachments here of my code options, my code and error message. I am using Blue Prism 6.6.
 

Attachments

  • CodeOptionsScreen.PNG
    58.7 KB · Views: 14
  • CodeScreen.PNG
    62.4 KB · Views: 13
  • ErrorScreen.PNG
    49.4 KB · Views: 11
Top