Unity got crash when using System.Drawing API

Unity 2017.1.2f1
What I need is sending the webcamera frame to the webserver.
Thanks very much.

Log:
========== OUTPUTING STACK TRACE ==================

0x00007FFADB2F2F60 (msvcrt) memcpy
0x00007FFAD13B392D (gdiplus) GdipDisposeImage
0x00007FFAD13B3031 (gdiplus) GdipDisposeImage
0x00007FFAD13B35FB (gdiplus) GdipDisposeImage
0x00007FFAD13B20E5 (gdiplus) GdipDisposeImage
0x00007FFAD13E2A15 (gdiplus) GdipFillRectangle
0x00007FFAD13FD6F2 (gdiplus) GdipSaveImageToStream
0x0000000062ACEF01 (Mono JIT Code) (wrapper managed-to-native) System.Drawing.GDIPlus:GdipSaveImageToStream (System.Runtime.InteropServices.HandleRef,System.Runtime.InteropServices.ComTypes.IStream,System.Guid&,System.Runtime.InteropServices.HandleRef)
0x0000000062ACE7CC (Mono JIT Code) System.Drawing.Image:Save (System.IO.Stream,System.Drawing.Imaging.ImageCodecInfo,System.Drawing.Imaging.EncoderParameters)
0x0000000062AC4D9B (Mono JIT Code) System.Drawing.Image:Save (System.IO.Stream,System.Drawing.Imaging.ImageFormat)
0x0000000062AC48A8 (Mono JIT Code) (wrapper remoting-invoke-with-check) System.Drawing.Image:Save (System.IO.Stream,System.Drawing.Imaging.ImageFormat)
0x0000000062A985DB (Mono JIT Code) [C:\Tioyo Project\UTrust\UCheerAI\Assets\_Scripts\ClientSocket.cs:383] ClientSocket:Color32Array () 
0x0000000062A5FF8E (Mono JIT Code) [C:\Tioyo Project\UTrust\UCheerAI\Assets\_Scripts\ClientSocket.cs:122] ClientSocket:BeginSendThread () 
0x0000000037C66DA2 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007FFAAA4A5FEB (mono) [c:\buildslave\mono\build\mono\mini\mini.c:4937] mono_jit_runtime_invoke 
0x00007FFAAA3F8765 (mono) [c:\buildslave\mono\build\mono\metadata\object.c:2623] mono_runtime_invoke 
0x00007FFAAA423BA3 (mono) [c:\buildslave\mono\build\mono\metadata	hreads.c:721] start_wrapper 
0x00007FFAAA4D8E3F (mono) [c:\buildslave\mono\build\libgc\win32_threads.c:574] thread_start 
0x00007FFADD721FE4 (KERNEL32) BaseThreadInitThunk
0x00007FFADDAFEFC1 (ntdll) RtlUserThreadStart

========== END OF STACKTRACE ===========

I don’t know if this old question is related, but maybe it’s what you need.