ImageButton如何保存ImageButton图像 [英] ImageButton how to save ImageButton image

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

问题描述

希望我能在这里得到一些帮助 - 我正在尝试将ImageButton图像保存到我的数据库中。基本上,获取imagebutton图像/值并将其转换为byte []并将字节保存到数据库。我知道如何将字节保存到数据库,但不知道如何将imagebutton图像/对象转换为字节。我已经尝试了一切,但没有运气。

解决方案

对不起,用户可以动态更改ImageButton图像;当发生这种情况时,我想从ImageButton捕获新图像并将其保存到数据库中。我不知道他们在本地计算机上从哪里上传文件


图像在你的服务器上开始,所以你为什么要这样做呢?

Hi, hope I can get some help here - I am trying to save an ImageButton image to my database. Basically, get the imagebutton image/value and convert it to byte[] and save the bytes to the database. I know how to save the bytes to the db, but don''t know how to get the imagebutton image/object to convert to bytes. I have tried everything, but no luck.

解决方案

Sorry, the users can dynamically change the ImageButton image; when that happens, I waant to capture the new image from the ImageButton and save it to the database. I don''t know from where on their local computer they are uploading the file from


the image is on your server to start with, so why do you want to do this ?


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

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