在java脚本中将图像转换为conten字节并保存在sql中。 [英] In java script image convert into conten bytes and save in sql.

查看:55
本文介绍了在java脚本中将图像转换为conten字节并保存在sql中。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,



在java脚本中如何将图像转换为conten字节并保存在sql中。



我的数据类型是sql中的图像。



这可能。



谢谢

Basit



我尝试过:



我试图将图像转换为base64,但缺点是尺寸比实际图像大3或4倍。

我想要如何在asp.net中使用sql将图像保存为内容byte。

Dear,

In java script how to Image convert into conten bytes and save in sql.

I have data type is image in sql.

It this possible.

Thanks
Basit

What I have tried:

I tried to convert image to base64, but the disadvantage is size is too big 3 or 4 time from actual image.
what i want how we are using in asp.net to sql save image as content byte.

推荐答案

Quote:

我试图将图像转换为base64,但是缺点是尺寸太大了3或4倍实际图像。

I tried to convert image to base64, but the disadvantage is size is too big 3 or 4 time from actual image.

Base 64编码做得好,是实际尺寸的1.33(4/3)。

你应该展示你是怎么做的编码。



Base64 - 维基百科,免费的百科全书 [ ^ ]

Base 64 encoding well done is 1.33 (4/3) from actual size.
You should show how you doing your encoding.

Base64 - Wikipedia, the free encyclopedia[^]


这篇关于在java脚本中将图像转换为conten字节并保存在sql中。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆