回复 9楼qd98zhq的帖子
9# 问题可以通过以下方法解决:
- var base64 = "MgAwADEANAAtADAANwAtADIANgDbj1VcxWC1URr/GpDHjyROKk4fZh9nhHZEjZllNmXGlgz/7nZNUhR4dnqEdtuPVVw6Tu9T5U6KYkkAVgALeo9ehHbokAZSn1L9gD5lMFJJAEUAT23IiWhWLU7Qj0yIDP8KAEZP0I9MiMePC3otThpPCWcATptOD2HzYA1OMFKEdu6VmJj6UbBzAjAKADIAMAAxADQALQAwADgALQAwADIA249VXMVgtVEa/7BzKFfvU+VOimJJAFYA404Leo9ehHZ7dlVfRmhMdWKXPmUwUkkARQAtTtCPTIgM/wlnhV+MW4RV248ATmVrjFuEVQIwCgAyADAAMQA0AC0AMAA4AC0AMAA5ANuPVVzFYLVRGv+wcyhXdGUqTpReKHULeo9e71PlTlNiBVOEdrllD18+ZTBSSQBFAC1O0I9MiAz/Rk8xdY5O11MwUnBlbmOTXr+L7pVCXIR2AF/RUyFqD19QljZSDP+wcyhX6lP9gNCPTIgoV0Bc31dRf4R2T23IiWhWLU4M/w1O/YDQj0yIKFeSTlSAUX+Edq9zg1gtTgz/f08odS1O2I8aT/pRsHMATptODU4OZoR2xWC1UQz/2I8JZ4VfjFuEVduPAE5lawOMdGWMW4RVAjAKADIAMAAxADQALQAwADgALQAxADYA249VXMVgtVEa/+52TVL9gIpiSQBWAAt6j174dnNRhHaoUgFgk15EAEwATAAM/1NiBVMQYkMAQQBCAIR2uWUPX9CPTIgoV0kARQBPbciJLU4M/wyAFE6hixJSU2KXewZcQwBBAEIABVPokHJ/MFJJAEkAUwANZ6FSaFYtTgz/2Y83aKJbN2Lvev2AuWW/T7+L7pUwUtFTA176UWVnhHYLeo9eDP9TYpd7C04qTh9mH2eEdgtOSlNoVNFTA17Zfktt1YvokH9PKHUATgtOAjAKAAoAMgAwADEANAAtADAAOQAtADIAMADbj1VcxWC1URr/jFuEVS1OLgAuAC4ACgA=";
- var data = Convert.FromBase64String(base64);
- string test = new string(Encoding.Unicode.GetChars(data));
复制代码
出现问题的原因是保存的Cell值无法直接序列号,所以Spread会自动转换成 Base64value 格式。所以在读取的时候要通过以上代码转换回来。 |