Paste Image Into a web page

M

Mike Smith

Ok, I'm asking for the world here :)

What I'm trying to do is come up with a way for a user to copy an image
(JPG/GIF) to their clipboard and paste it into a web page. The web page
would be a .Net web form. I'm thinking I'd have to convert the image on the
clipboard to some sort of encoded string so it could be pasted into a text
box. Then once the form is posted, the string could then be converted back
to an image on the server and loaded into an image box (possibly in the post
back) and/or saved in a SQL database.

I realize that it would be much easier to have the user save the image
locally and upload the image file to the server, but this is one of "those"
requirements.

Any ideas?
 
M

[MSFT]

Hi Mike,

As I known, there is no ASP.NET web controls which can accept images from
clipborad, including converting to string. If you have to do this, I
suggest you may consider embeding a windows form control in your web page.
On the Windows form Control, you can put a Rich Text Box control which can
accept image from clipborad. And In the widnows form control, you can
sumbit the data in Rich Text Box control to server side, for example, with
HttpWebRequest class.

Anyway, the simplest solution is to have customer save the image on local
disk first. I would like suggest this one before others.

Hope this help,

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top