base64string中的charachter无效

编程入门 行业动态 更新时间:2024-10-26 16:24:26
本文介绍了base64string中的charachter无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我用的是 byte [] att = Convert.FromBase64String; s /> i有一个例外base64string中的无效charachter i删除字符串中的\ n s是:

Hi when i use byte[] att = Convert.FromBase64String(s); i have an exception that "invalid charachter in base64string" i remove "\n" in string also s is :

<attachment>LzlqLzRBQV ... vMlE9PQ== </attachment>

大规模Base64转储删节 - OriginalGriff [/ edit]

[edit]Massive Base64 dump abridged - OriginalGriff[/edit]

推荐答案

可能是开始和结束时的HTML标签引起问题的原因是:我试着删除它们...... Probably, it's the HTML tags at the start and end that are causing the problem: I'd try removing them... <attachment>

And

</attachment>

应该去...

忽略'\ n' 字符,你仍然有虚假的尾随'='字符。 Ignoring the '\n' character, you still have the spurious trailing '=' characters.

更多推荐

base64string中的charachter无效

本文发布于:2023-11-26 19:30:03,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1634896.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:base64string   charachter

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!