如何在数据库中存储图像? [英] How Do I Store Image In Database?

查看:90
本文介绍了如何在数据库中存储图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个wcf休息服务,它有一个IOS客户端。当ios应用程序向我发送一个字节数组的图像时,我必须读取字节数组,并且必须将图像存储到wcf服务的数据库中必须保存图像路径而不是图像。



所以请指导我或给我任何解决方案。



谢谢

I am developing a wcf rest service ,which has a IOS client.When the ios app sends me a image in terms of byte array ,i have to read the byte array and have to store image to database from wcf service where i have to save image path not the image.

so please guide me or give me any solution regarding this.

thanks

推荐答案

看到这个问题:将图像存储在文件夹中 [ ^ ]。也许这会有所帮助。 :)
See this question: Store images in folder[^]. Maybe this will help. :)


我不知道为什么你这么懒的人现在使用搜索引擎好几天了。



将字节数组转换为c#中的图像 [ ^ ]
I dont know why you people are so lazy now a days to use the search engine.

convert byte array to image in c#[^]


这篇关于如何在数据库中存储图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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