如何在Asp.net中将图像转换为文本和文本到图像(图像到字节数组和字节数组到文本) [英] How to Convert Image to text and text to image in Asp.net (Image to byte array and byte array to Text)

查看:70
本文介绍了如何在Asp.net中将图像转换为文本和文本到图像(图像到字节数组和字节数组到文本)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友,



请紧急帮助我,我办公室有一项任务,我已经花了5天时间,

但havnt得到了将图像转换为文本的完美解决方案..



AS我有多个扫描图像..所以我正在寻找使用asp.net的解决方案技术。



请伙计帮助我。

感谢你的可饶舌时间。

解决方案

很遗憾你没有遇到这个链接:doh:



C#Image to Byte Array和Byte Array to Image Converter Class [ ^ ]



问候..:)


  • 第一项任务:将图像转换为字节数组,谷歌快速搜索<啊ref =https://www.google.co.uk/#q=c%23+image+to+byte+array>结果 [ ^ ](第一个条目是 CodeProject article)。
  • 第二个任务:字节数组到文本。您可以使用 Base64 [ ^ ]编码。


感谢您的解决方案伙计。



我曾尝试过两种解决方案。但它并没有为我提供扫描图像上写的数据..



我已将图像转换为字节数组...但是在将字节数组转换为文本后...

结果是我们所需要的。

Hi Friend,

Please help me on urgent basis,I have one task in my office for which i have aleady taken 5 days,
but havnt got the perfect solution to convert Image to text ..

AS i have multiptle scan image..so i Was looking for solution using asp.net technology.

Please guy help me.
Thanks for your valauable time .

解决方案

Its sad that you didn't come across this link :doh:

C# Image to Byte Array and Byte Array to Image Converter Class[^]

Regards..:)


  • First task: converting the image into a byte array, a quick Google search result[^] (the very first entry is a CodeProject article).
  • Second task: byte array to text. You may use, for instance Base64[^] encoding.


thanks for ur solution Guys.

I had tried both the solution.but it doesnt provide me the data that was written on scanned image ..

I have converted image to byte array ...but after converting byte array to text..
the result is something weired.


这篇关于如何在Asp.net中将图像转换为文本和文本到图像(图像到字节数组和字节数组到文本)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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