`
zht1933
  • 浏览: 223588 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

图片 Base64 格式 字符串转换

阅读更多

//Java 部分

 

package com.zht;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

import sun.misc.BASE64Decoder;
import sun.misc.BASE64Encoder;

public class Base64 {
 public static void main(String[] args) {
  String strImg = GetImageStr();
  System.out.println(strImg);
  GenerateImage(strImg);
 }

 //将图片文件转化为字节数组字符串,并对其进行Base64编码处理
 public static String GetImageStr() {
  String imgFile = "d:\\1.jpg";//待处理的图片
  InputStream in = null;
  byte[] data = null;
  //读取图片字节数组
  try {
   in = new FileInputStream(imgFile);
   data = new byte[in.available()];
   in.read(data);
   in.close();
  } catch (IOException e) {
   e.printStackTrace();
  }
  //对字节数组Base64编码
  BASE64Encoder encoder = new BASE64Encoder();
  return encoder.encode(data);//返回Base64编码过的字节数组字符串
 }

 //对字节数组字符串进行Base64解码并生成图片
 public static boolean GenerateImage(String imgStr) {
  if (imgStr == null) //图像数据为空
   return false;
  BASE64Decoder decoder = new BASE64Decoder();
  try {
   //Base64解码
   byte[] b = decoder.decodeBuffer(imgStr);
   for (int i = 0; i < b.length; ++i) {
    if (b[i] < 0) {//调整异常数据
     b[i] += 256;
    }
   }
   //生成jpeg图片
   String imgFilePath = "d:\\2.jpg";//新生成的图片
   OutputStream out = new FileOutputStream(imgFilePath);
   out.write(b);
   out.flush();
   out.close();
   return true;
  } catch (Exception e) {
   return false;
  }
 }
}

 

//Html 页面部分

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
</head>

<body>
<img src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAMCAgMCAgMDAwME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b6zc
QJgRRuoVSoO3LnOM/U1P9gYdu3M/w/yMnnuItey/r5nx5a/ATxoq75NEbYgJP+kQ8YGT/H2FbEfw
W8XR+ZGuikPHww+0RdfQfPyeO39a+p9NRZLy0ZlGZEKvgY3AYXn8CR71aA3aqEywVYGYYJGDl+eO
/A/IVtHIsPHaT/r5HFUzqvNapHy5Z/CLxhCgRtJ+Zchh9oi4/wDH62bL4ZeJ4NgbSmXOHGZY+xzk
fN/n6Zr6YubKFL22ITJaV1O5icjapxzTtSiSGzaSNQjxsmxgORzj+RNU8mo92Y/2xWelkfM3hf4X
eIfCevTww6PK2jam8t1JJ9qh8qzn4b5ELZAlySdmAHjzg7iRf034beJbPxjrl3HpA/s26SKSGVHT
AkxtYAFs4wq9R3NfR9xBGyyxlF2MrkrjjgZH5EVJZKLjTrcyAOWhjY57lgcn8cVLyTD/AMz/AA/y
G86rxeiRw3gDwrqmj3clzd2xtwYGCtuUqWyOPlJHY/lXfxXBmBMfy8nd6549fx/Km2iiOOWJRtjR
1CqOMAkZrJe8mhvpwj4XC8FQR9xT0/GvXwuHjhqfs4bHz+MxMsVV9pNa+R//2Q==" width="102" height="126" />
</body>
</html>

 

分享到:
评论

相关推荐

    c#中 base64字符串与普通字符串互转

    1. 将普通字符串转换为Base64字符串 在C#中,我们可以使用`System.Convert`类的`ToBase64String`方法将普通字符串(UTF-8编码的字节数组)转换为Base64字符串。首先,我们需要将字符串转换为字节数组,然后进行编码...

    图片与Base64加密码字符串相互转换工具

    如果是源代码文件,那么它可能包含了实现图片与Base64加密码字符串转换的核心逻辑。 综合以上分析,该工具涉及的技术点包括: 1. 图像处理:读取、显示和保存图片文件,可能使用了如OpenCV、PIL等库。 2. Base64...

    将图片转成二进制并生成Base64编码字符串,再将二进制转换成各种图片

    例如,`TestImageBinary.java`可能会有一个方法,接受图片路径作为输入,读取图片,将其转换为Base64字符串,然后再反向操作,将Base64字符串转换回图片。 `20090709442.jpg`文件很可能是用来测试上述代码的图片。...

    js对图片base64编码字符串进行解码并输出图像示例

    Base64是一种用于将二进制数据编码为ASCII字符串的编码方式,它在传输或存储非文本数据时非常有用,例如图片。 在HTML文档中,`&lt;img&gt;`标签通常用于展示图像,但在这里,我们将通过JavaScript来实现这一功能。首先,...

    图片base64字符串转图片工具代码

    1. **解码字符串**:使用`DecodeString`方法将Base64编码的字符串转换回原始的二进制数据。 2. **创建内存流**:创建一个`TMemoryStream`对象,用于存储解码后的二进制数据。 3. **写入数据**:将解码得到的二进制...

    VB将二进制图片文件转换为Base64字符串文本

    如果需要从Base64字符串恢复图片,可以使用类似的方法,先使用Convert.FromBase64String将字符串转换回字节数组,然后写入到新的文件中。 在实际应用中,这样的功能可能用于在数据库中存储图片数据,或者在网络请求...

    VB 将二进制图片文件转换为Base64字符串文本.rar

    在这个场景中,我们关注的是如何将二进制图片文件转换为Base64字符串文本,以及如何将这个Base64字符串再还原回图片。这在数据传输、存储或者网页显示等方面非常有用,因为Base64编码可以将二进制数据转换为ASCII...

    Thymeleaf显示base64字符串为图片.docx

    这段后台代码中,我们首先获取到图片的字节数组`imgbyte`,然后使用`BASE64Encoder`将其转换为Base64字符串`str64`。`ModelAndView`对象用于在前后端之间传递数据,我们设置了视图名称为`showimg`,并添加了一个名为...

    VB图片加密技术实例:将图片转换了Base64格式字符.rar

    VB图片加密技术实例:将图片转换了Base64格式字符,任意图像转换为Base64文本,支持的图片文件格式|*.gif; *.jpg; *.jpeg; *.jpe; *.bmp; *.png; *.tif; *.tiff。如果有Base64文件查看程序,你可输入这段转换后的...

    base64字符串和图片的相互转换

    在描述的场景中,我们有两个关键操作:将图片转换为Base64字符串,并将Base64字符串还原为图片。 1. **图片转Base64字符串**: 在这个过程中,图片文件(通常为.jpg, .png, .gif等形式)被读取并转化为字节流。...

    二维码图片转换成BASE64字符串

    然后,我们可以使用`java.util.Base64`类的编码方法将图像数据转换为BASE64格式的字符串。以下是一个简单的示例代码片段,展示了这个过程: ```java import java.awt.image.BufferedImage; import java.io.File; ...

    图片与Base64互相转换的工具类

    将图片转换成Base64编码 对字节数组字符串进行Base64解码并生成图片 Base64字符串转byte[] 判断图片base64字符串的文件格式 字符串转base64

    C++图片转base64字符串

    本话题聚焦于如何在C++中将图片转换为base64字符串,以适应网络传输的需求。 Base64编码是一种将任意二进制数据转换为ASCII字符集的表示方法,它将3个字节的数据转换成4个可打印的ASCII字符。这样转换后的字符串...

    Base64文本字符串编码解码加密解密双向解析工具

    在描述中提到,此工具专注于处理文本和字符串的Base64编码和解码,而不是通常针对文件和图片的应用。在处理文本时,首先需要将文本转换为字节序列,通常是根据指定的字符编码进行,比如UTF-8。UTF-8是一种非常常见的...

    Base64转换工具(字符串转换以及图片转换)

    Base64的转换工具,用于普通字符串或者图片转换为Base64或者将base64字符串转换为普通字符串或图片。

    java实现图片转base64字符串 java实现base64字符串转图片

    Java 实现图片转 Base64 字符串和 Base64 字符串转图片是 Java programming 中两个常用的功能,分别用于将图片转换为 Base64 编码的字符串和将 Base64 编码的字符串转换回图片。下面我们将详细介绍这两个功能的实现...

    Java 从网络中读取图片 转换成Base64字符串

    在Java编程中,将网络上的图片读取并转换为Base64字符串是一项常见的任务,尤其在Web开发中,这样的操作可以用于数据传输或者存储。Base64是一种编码方式,能够将二进制数据转化为可打印的ASCII字符,方便在网络上...

    将图片toBase64字符串

    在“将图片toBase64字符串”这个话题中,我们将深入探讨Base64编码原理,以及如何将图片转换为Base64字符串,并在网页或其他环境中显示这些编码。 首先,Base64编码是基于64个字符的集合,包括大小写字母、数字和两...

    图片转成Base64字符串,供<img/>使用

    将图片转成Base64字符串。供前端Html &lt;img/&gt; 使用 将转换结果替换至src的值就OK了

Global site tag (gtag.js) - Google Analytics