在vb.net中从文件写入/读取图像 [英] Write/Read Image from/to File in vb.net

查看:165
本文介绍了在vb.net中从文件写入/读取图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好所有访客
我在将图像文件写入vb.net中的文件时遇到问题.
我在D:\ images \ myimg.jpg上有一个图像文件,并且我想使用vb.net将我的图像(myimg.jpg)写入文件(我写入图像文件而不是图像路径)
有人知道我如何在vb.net中将图像写入文件吗?
谢谢

Hi all visitors
i have problem with write image file to file in vb.net.
i have an image file on D:\images\myimg.jpg and i want to write my image(myimg.jpg) to file using vb.net(i write image file not path of image)
Anybody know to how i can write image to file in vb.net?
Thanks

推荐答案

您需要使用System.IO.ReadAllBytes和System.IO.WriteAllBytes函数.

http://msdn.microsoft.com/en-us/library/system. io.file.readallbytes.aspx [ ^ ]
U need to Use System.IO.ReadAllBytes and System.IO.WriteAllBytes function.

http://msdn.microsoft.com/en-us/library/system.io.file.readallbytes.aspx[^]


您可以看到此链接
点击
you can see this links
Click


这篇关于在vb.net中从文件写入/读取图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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