当前位置: 首页 > 知识库问答 >
问题:

直接从编码字符串中获取java对象是可能的,而不是将编码字符串转换成文件然后读取文件?

佴英奕
2023-03-14
    null
    null
UEsDBBQACAgIAAE6vVIAAAAAAAAAAAAAAAA1AAAAUk9MRV9OQU1FXzM4NzYyNV8wNS0yOS0yMDIxXzAzLTIwLTEwX0hpZXJhcmNoaWNhbC56aXCdeGc0HOzWthaGKNFrtDG6MKP33nsXXRAkWkwwGEQbJWGUEIIRUaIlakYnSvQWRu9d9BK9vedZ34/vOef9vvOu8+573T/uH/e19trX2nuv6zLQxsWjwgIAAFiEjM1GWH8LwX9cfSNFO0MDOwMjTWVNPXU7XUU9RXVVIzstfSU7Rx8POw03Zx8HH0dXN0cH9yeOUL89437PCKFHTed8ZVm5OQa92HyvfnaI6oH0AOS0T3Ei3GNmWssHgWz5RsanUyj34d2hoW8TVEnpkA8FeJLkxEkRwdFd2D7R3d4nr5Rw0p+Qv4dRUSJWe8Ii3xEnnMU8Q8D9Y6YdVdhOz35/vOC9KOn8aEVlZcjs5Eo7hlEk7+BXyJVUjwd5g0JUrd+ziBEm+GH3le13TT8CEbFpP9qACNZDNHQczpQgSpUu7NWP1LyjXc+YvFqBXt+7MvHrZcKbPEyhEKQf0WoVZfbSFfkPLfFPqGcCg9ihm6qLsWo4g40tvgq/dr4V10t9Yfwubvhqk9jVdkLNWDBRb/2x4M81e4SpXUZJl23uduu490pUyik3vpzTox/mMbh1j/2W5XZDI0IqFPfH4vIIhOsjDa9zx3hG734NyFeInLjC+Pz1+2QkXsSTmKW8PXmFQFevK5S+YDAB1XjUu74WX0Qq0eoKDh/UH1TRqtsS9pI8f0vVbGRNw8L5FFU36jej3NfkPrFygN6jNNAmAFB7wljfYGNh1T3AwjL4/5Ir9O/JfQ51/H+wa2MFXZGiCJFvbU/ddDpjcU/FCYcRuCd4QFJOlCTV8A7oMle1Ibvli56aLfZCiQqF28S3EEp3m4aCcqt5o9K9w9g9mP/CWOSipfuA1+DdV0fkRfYN2/125r5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/yTttAIAANkCAAAWAAAAAAAAAAAAAAAAAMgeAABEaWFnbm9zdGljc18zODc2MjUuemlwUEsFBgAAAAADAAMABQEAAMAhAAAAAA==

      

共有1个答案

鄂琛
2023-03-14

是的,您可以使用Java.util.Base64轻松地在Java中将Base64数据解码为byte[],如下所示:

String myBase64String = ...;
byte[] decoded = Base64.getDecoder().decode(myBase64String);

注意,您可能需要将getDecoder()替换为getMimeDecoder()getURLDecoder(),这取决于您使用的字符串的Base64编码类型。

然后,如果需要某种需要该数据作为输入的处理,则可以轻松地创建InputStream,该ByteArrayInputStream使用ByteArrayInputStream提供该数据:

InputStream in = new ByteArrayInputStream(decoded);
 类似资料:
  • 问题内容: 我正在使用urllib2从网页中获取数据。所有页面的内容均为英语,因此不存在处理非英语文本的问题。但是页面是经过编码的,有时它们包含HTML实体,例如£或版权符号等。 我想检查页面的某些部分是否包含某些关键字-但是,我想进行不区分大小写的检查(出于明显的原因)。 将返回的页面内容转换为所有小写字母的最佳方法是什么? [[更新]] 我不必使用urllib2来获取数据,实际上我可以改用Be

  • 编程相对较新。我想读取一个URL,修改文本字符串,然后将其写入以行分隔的csv文本文件。 阅读 但我无法将相同的字符串写入文件——它只会变成一行(请参阅下面的循环,尝试1) 我想我正在寻找一种方法,在FileWriter或BufferedWriter循环中,将字符串finalDataA转换为数组字符串(即包括字符串后缀[0]),但我还没有找到这样一种方法,不会给出类型“不能”的错误将String转

  • 问题内容: 我已经在这个问题上停留了几个小时,试图使其正常工作。基本上我想做的是以下内容。Base64对从Android设备上的sdcard拾取的音频文件进行编码,对Base64进行编码,将其转换为String,然后再次使用Base64对该String进行解码,然后将文件保存回sdcard。听起来很简单,使用文本文件时效果很好。例如,如果我创建一个简单的文本文件,将其命名为dave.text并在“

  • 问题内容: 我正在使用 Python 2 从 ASCII编码的 文本文件中解析JSON 。 当使用或 加载这些文件时,我所有的字符串值都转换为Unicode对象而不是字符串对象。问题是,我必须将数据与仅接受字符串对象的某些库一起使用。我 无法更改库, 也 无法 更新它们。 是否可以获取字符串对象而不是Unicode对象? 更新资料 很久以前 ,当我坚持使用 Python 2 时就问 了 这个问题。

  • 问题内容: 就像标题所说的那样,我正在尝试在Java中将字符串“ test”编码为base32字符串“ ORSXG5A =“。 我在网上搜索时发现的所有类都是使用32位从字符串编码为数组的类,但是显然这不是我想要的。 很抱歉这个新手问题。 问题答案: Apache commons编解码器提供了一个可以执行此操作的类 版画 您可以在此处下载。

  • 本文向大家介绍JavaScript将字符串转换成字符编码列表的方法,包括了JavaScript将字符串转换成字符编码列表的方法的使用技巧和注意事项,需要的朋友参考一下 本文实例讲述了JavaScript将字符串转换成字符编码列表的方法。分享给大家供大家参考。具体如下: JavaScript将字符串转换成字符编码列表,例如foo转换成 [112,111,111] 方法 1: JavaScript 1