Image fromstream issue

后端 未结 1 1727
遇见更好的自我
遇见更好的自我 2021-01-27 06:45

i have problems during creating image from stream. on my windows pc it forks great, on ubuntu server, it throws an error

System.ArgumentException: A null reference

相关标签:
1条回答
  • 2021-01-27 06:59

    First, locate the directory where is the System.Drawing.dll file (for example /opt/mono-4.4.0/lib/gac/System.Drawing/4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll).

    Create a file in the same directory called System.Drawing.dll.config with the following content, updating the directory to the correct location of libgdiplus.so:

    <configuration>
      <dllmap dll="gdiplus.dll" target="/opt/mono-4.4.0/lib/libgdiplus.so"/>
    </configuration>
    
    0 讨论(0)
提交回复
热议问题