Link to home
Create AccountLog in
Avatar of at999
at999

asked on

Save-Dialog box in javascript-save

I have a webpage which is showing different types of images using an ASP.NET AJAX tag libraries.

Now i have an html button on it called Export-Image. Under onclick of that button I want to open a save as dialog box(only through javascript), then i want to capture the name and location of the file that is specified by the user in that dialog and then I want to call a C# function which will save an Htttp-Output-Stream(which has an image) to to that specified location on client's machine. Note - That image is shown through a HttpOutputStream, it is not an actual image file, I have to read the stream and then write inorder to export it. Hence I have the only option to call c# function that will read from HttpOutputStream and write to file on clients's machine...  
ASKER CERTIFIED SOLUTION
Avatar of Zvonko
Zvonko
Flag of North Macedonia image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of at999
at999

ASKER

No that image is not displayed using <img> tag- its done using an outside product called image-gear so its within <imgear tag
On the browser side it results to an <IMG> tag. Look into page source and you will see. So you have not to care.
Avatar of at999

ASKER

but when i open that url, it does not work...
So how should i implement this whole process of saving the image ..?
Look at this img tag:

<IMG hideFocus style="POSITION: absolute; DISPLAY: block; -MS-INTERPOLATION-MODE: bicubic; VISIBILITY: visible; TOP: 0px; LEFT: 0px" id=igtile14 tabIndex=-1 src="http://igdemos.accusoft.com/ImageGearAspNet19/Desktop/ImageGear.Web.ImageHandler.ashx?edi=SgBhAHcALgBKAFAARwA1&pn=0&clientVersion=1&operation=scale&scale=0.3&quality=85" >
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of at999

ASKER

If i have to copy that img to clipboard how would i do it... thanks
Avatar of at999

ASKER

I do not have id or name of that <img> tag in that url... thanks