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...  
JavaScript

Avatar of undefined
Last Comment
at999

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Zvonko

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
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
Zvonko

On the browser side it results to an <IMG> tag. Look into page source and you will see. So you have not to care.
at999

ASKER
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
at999

ASKER
but when i open that url, it does not work...
So how should i implement this whole process of saving the image ..?
Zvonko

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
Zvonko

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
at999

ASKER
If i have to copy that img to clipboard how would i do it... thanks
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
at999

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