将图像保存到SQL中... [英] Save image into SQL...

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

问题描述

我在窗体中有一个图像控件..我有一些标签..我在该图像上拖放标签


在运行时我想将图像保存到sql ....



使用ASP.NET

i have a image control in form.. i have some label .. i drag and drop labels on that image


at run time i want to save image to sql....



USING ASP.NET

推荐答案

等等-您是在告诉我,您已经将标签拖放到图像上工作了吗?您已经发布了将图像保存到SQL的代码,因此,如果拖放工作正常,我不明白为什么会有问题.

您是如何开始拖放工作的?您的实际问题是什么?
Wait - you''re telling me that you got the drag and drop of labels onto an image to work ? You already posted your code to save images to SQL, so if you got the drag and drop working, I don''t see why you have a question.

How did you get the drag and drop to work ? What is your actual question ?


是的,我们可以在sql中保存图像..

我不得不将一些标签拖放到asp.net中的图像控件上
它的图像在我们拖放标签后发生了变化...因此应保存拖放的图像...

我们如何做到的...任何想法的朋友"

您已经发布相同的问题已有几个星期了,但您仍然无法解决编辑帖子以添加细节的问题,而不是发布没有答案的内容?

您是如何进行拖放工作的?正如我已经向您解释的那样,您无法从客户端捕获图像.您唯一的选择就是尝试在服务器上重新创建它.我不确定如何做到这一点,但是对如何在网络应用程序中将标签拖放到图像上的解释将有助于尝试找出答案.
"yes the image we can save in sql..

i had to drag and drop some labels on a image control in asp.net
its image changing after we drapg and drop label... so the drag and dropped image should be saved ...

how we do it... Any Idea friends"

You''ve been posting the same question for weeks, and you still can''t work out to edit your post to add detail instead of posting non answers ?

How did you make the drag and drop work ? As I''ve explained to you already, there is no way you can capture an image from the client. Your only bet would be to try to recreate it on the server. How you do that, I''m not sure, but an explanation of how you manage to drag and drop labels onto an image in a web app would be helpful in trying to figure out an answer.


在设计时,我将标签自动拖放到图像上并在运行时将显示来自sql的标签值


我的问题是在运行时我想保存包含拖放标签的图像....."

编辑您的DAMN帖子!!!!当我按发布答案"时,您的回复消失时,很难做出响应.

好的,所以您没有,也不需要任何拖放功能.您曾经使用过Web设计器,该设计器创建CSS,该CSS将标签固定在图像上的固定位置.拖放与它无关,用户将永远不会拖动图像.

最好的选择是编写图像处理代码,以将图像加载到服务器上,然后在其上放置文本.无法捕获在客户端渲染的实际图像.我已经告诉你好几个星期了.如果花了您这么长时间才能弄清楚如何使用设计器,那么如果您能够编写代码以在服务器上创建与客户端上的位图匹配的位图,我会感到惊讶.如果是我,我实际上将在服务器上生成带有文本的图像,然后将其发送下来,而不渲染一件事,然后生成另一件事.

我能认真地问一下,印度的外包惨败真的是太糟糕了,有人为此代码付钱吗?因为,说真的,我会解雇任何产生您所发布代码的人,并且如果您想成为一名真正的开发人员,而不是开个玩笑,那么您应该真正购买一些书籍并学习,然后离开这种情况迫使您无法在微薄的能力范围内进行编码,从而产生可怕的,难以维护的,难以辨认的代码.如果您只是在学习,那就买一本书并仔细阅读,而不要从事明显超出您范围的项目.您花了很长时间才弄清楚如何使用设计器,并且您对问题的理解是如此之深,以至于您在根本不需要它的情况下不断寻求将拖放内容添加到Web表单的方法? br/>
今天的软件行业令我非常沮丧.
"on design it self i drag and dropped the label on image and run time it will display value for label from sql


My question is at run time i want to save the image containg the drag and dropped labels....."

EDIT YOUR DAMN POST !!!! It''s very hard to respond when your replies disappear when I hit ''post an answer''.

OK, so you don''t have, nor did you need, any sort of drag and drop functionality. You used to web designer, which creates CSS, which places your labels over your image in a fixed position. Drag and drop has nothing to do with it, the user will never drag the images.

Your best bet is to write image processing code that loads the image on the server, then places the text on it. There is NO WAY to capture the actual image that is rendered on the client side. I''ve been telling you that for weeks now. If it took you this long to work out how to use the designer, I''d be surprised if you''ll be able to write the code to create a bitmap on the server that matches the one on the client. If it was me, I''d actually generate the image on the server, with the text, and send that down, not render one thing then generate another.

Can I ask, seriously, is the outsourcing fiasco in India really so bad that someone is paying for this code ? Because, seriously, I''d fire anyone who produced the code you''ve been posting, and if you want to be an actual developer, as opposed to being a joke, you should really buy some books and learn, and get out of a situation that forces you to code well outside your meagre abilities, and produce terrible, unmaintainble, illegible code as a result. If you are just studying, then buy a book and work through it, instead of working on a project that is clearly beyond you. It took you this long to work out how to use the designer, and your understanding of hte problem was such that you kept asking for ways to add drag and drop to your web form, when you didn''t need it at all ?

The software industry today is very depressing to me.


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

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