tag:blogger.com,1999:blog-1454785102765291191.post7672541349818865325..comments2024-03-29T10:16:36.738+05:30Comments on ASP.NET, C# and .NET: Saving files from one website to another website.Sandeephttp://www.blogger.com/profile/17475854334307316616noreply@blogger.comBlogger16125tag:blogger.com,1999:blog-1454785102765291191.post-26695147951654621432021-06-08T17:32:57.824+05:302021-06-08T17:32:57.824+05:30I did the same code File is being saved on other w...I did the same code File is being saved on other website but its blank. can anyone please helpsangitahttps://www.blogger.com/profile/13374218981405613584noreply@blogger.comtag:blogger.com,1999:blog-1454785102765291191.post-15014169837065781882018-04-10T18:38:14.418+05:302018-04-10T18:38:14.418+05:30Hi
I am using MVC so i cant use fileupload serve...Hi <br />I am using MVC so i cant use fileupload server conntrol of asp.net . But in case of mvc when i am going to convert file into byte array it gives an error like Could not find file 'C:\Program Files\IIS Express\slide2.jpg'. Anonymoushttps://www.blogger.com/profile/17146315980061862962noreply@blogger.comtag:blogger.com,1999:blog-1454785102765291191.post-11118985621695453292017-09-06T18:09:11.773+05:302017-09-06T18:09:11.773+05:30this type of error.....
The remote server return...this type of error..... <br /><br />The remote server returned an error: (405) Method Not Allowed. Anonymoushttps://www.blogger.com/profile/01619877392626711466noreply@blogger.comtag:blogger.com,1999:blog-1454785102765291191.post-31369519274202652802012-12-04T09:11:07.414+05:302012-12-04T09:11:07.414+05:30Hi Sandeep,
I have a project that is similar to y...Hi Sandeep,<br /><br />I have a project that is similar to your solution (saving files from one website to another). The HttpWebRequest and HttpWebResponse works as expected in HTTP post. However, our web servers used SSL for client authentication. I have a hard time implementing and validating certificates in HTTPS call. Can you lead me to a solution that will work to post data(image) to an HTTPS service based on your approach (cross website posting of data)?<br /><br />I'm hoping you could help me on my problem. Thanks<br /><br />Junius D.Juniuzhttps://www.blogger.com/profile/06647178101562492512noreply@blogger.comtag:blogger.com,1999:blog-1454785102765291191.post-71617506359163812012-07-16T12:22:43.232+05:302012-07-16T12:22:43.232+05:30Hi Lata,
Yes that is correct. If you have write pe...Hi Lata,<br />Yes that is correct. If you have write permission to a folder in the third party website you will be able to save it. But again that is not advisable, as anyone can save anything. Instead you can use FTP or the solution provide above where you have to have the saving page in the third party website. My option is possible only when you have control in both the websites. If not you can use FTP. Also please do take care to proper security checking so that someone else doesn't host some malicious program.Sandeephttps://www.blogger.com/profile/17475854334307316616noreply@blogger.comtag:blogger.com,1999:blog-1454785102765291191.post-51049057536790972852012-07-13T17:47:08.994+05:302012-07-13T17:47:08.994+05:30Hi,
this article is 2 much useful for me. But i h...Hi,<br /><br />this article is 2 much useful for me. But i have one problem i am to transfer the images from our website to another server.<br /><br />According to your code i am to make the virtual directory on another server also for creating the SaveFile.aspx page.<br /><br />Please guide is am right??Lata Madanhttps://www.blogger.com/profile/04445836515141687898noreply@blogger.comtag:blogger.com,1999:blog-1454785102765291191.post-16592220486426408742012-01-11T12:04:24.812+05:302012-01-11T12:04:24.812+05:30Hi Kenny,
I have talked about the same scenario in...Hi Kenny,<br />I have talked about the same scenario in the blog with code samples. If you are facing any particular problem or you have any doubt please let me know.Sandeephttps://www.blogger.com/profile/17475854334307316616noreply@blogger.comtag:blogger.com,1999:blog-1454785102765291191.post-49630839967167991702012-01-11T09:01:48.117+05:302012-01-11T09:01:48.117+05:30I really need this codes for my project, we need t...I really need this codes for my project, we need to make a <a href="http://www.cafe24.com/" rel="nofollow">website creator</a> that can transfer the existing file of a website to a new one. :)Kenny Carterhttps://www.blogger.com/profile/12620106564153197196noreply@blogger.comtag:blogger.com,1999:blog-1454785102765291191.post-31507869870301616282010-02-23T22:13:17.718+05:302010-02-23T22:13:17.718+05:30Hi Kesava,
May be the browser settings don't a...Hi Kesava,<br />May be the browser settings don't allow to run the windows user control. Just compare the settings of the browsers in both the system.Sandeephttps://www.blogger.com/profile/17475854334307316616noreply@blogger.comtag:blogger.com,1999:blog-1454785102765291191.post-45458855010692719712010-02-23T22:12:23.616+05:302010-02-23T22:12:23.616+05:30Hi Kesava,
The same implementation you can use in...Hi Kesava,<br /><br />The same implementation you can use in windows application as well. I have done a similar one like this. Just make sure that the page is not under any mode of authentication like forms or windows. If the website is under forms/windos authentication use location tag in web.config to exclude the image saving aspx file from the authentication.<br /><br />Normally 500 is an internal server error. The cause of it can be know by inspecting the server log. So just what is the cause of the internal error.Sandeephttps://www.blogger.com/profile/17475854334307316616noreply@blogger.comtag:blogger.com,1999:blog-1454785102765291191.post-20142210056525415262009-09-18T11:44:07.334+05:302009-09-18T11:44:07.334+05:30hi,
i have another requirement . i want to captur...hi, <br />i have another requirement . i want to capture the image using web application for that i used widows user control to capture image .i place the user control with the help of "object" tag before that i register the assembly using regasm and add it to gac folder it works fine on my system .If i want to access this application from another system in the network it will display only the border of the control ,it will not display any thing .<br />if u know please send to my mail id or post on ur blog <br />Thanks&Regards<br />KesavaAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-1454785102765291191.post-35532056953051352762009-09-18T11:36:43.266+05:302009-09-18T11:36:43.266+05:30hi Sandeep,
This is kesava.
i am also having same ...hi Sandeep,<br />This is kesava.<br />i am also having same kind of requirement but in case of web application i need to use windows application to send image to the web application as stream . i am using memory stream to convert the image to stream but when i'm sending the stream it will rises an error "Internal server error(500) like that ".<br />If u know the solution please help me <br />my mail id :ramki.pindi@gmail.comAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-1454785102765291191.post-43439050195930730602009-09-16T13:38:59.564+05:302009-09-16T13:38:59.564+05:30Hi Ajay,
This blog talks about the same requiremen...Hi Ajay,<br />This blog talks about the same requirement what you are asking for. So follow the blog instruction and you will be good to go.<br /><br />SandeepSandeephttps://www.blogger.com/profile/17475854334307316616noreply@blogger.comtag:blogger.com,1999:blog-1454785102765291191.post-64174521799842181072009-09-16T11:55:41.658+05:302009-09-16T11:55:41.658+05:30Hi
Sandeep i Ajay here in my website i want to up...Hi <br />Sandeep i Ajay here in my website i want to upload document in one website and save the document in other website folder (meance other server) can you please tell me how can it possible i am very new in asp.netUnknownhttps://www.blogger.com/profile/14918224908116302112noreply@blogger.comtag:blogger.com,1999:blog-1454785102765291191.post-84716417710575718892009-09-09T13:21:53.813+05:302009-09-09T13:21:53.813+05:30Hi Jeremy,
Could you please paste the code you hav...Hi Jeremy,<br />Could you please paste the code you have used. Seeing the code I may be able to help you. I have used somewhat the same implementation and saved files n number of times without any error.Sandeephttps://www.blogger.com/profile/17475854334307316616noreply@blogger.comtag:blogger.com,1999:blog-1454785102765291191.post-75429670324049847792009-09-09T09:24:12.745+05:302009-09-09T09:24:12.745+05:30Hi, EXCELLENT!!! One thing. The first file posts ...Hi, EXCELLENT!!! One thing. The first file posts great, but the next gives the following error: System.Web.HttpException: The state information is invalid for this page and might be corrupted.<br /><br />I just added a Response.Redirect back to UploadFile.aspx after posting the file and it worked ok. <br /><br />Just curious if I'm missing something or you have another solution to this.<br /><br />Thanks much!<br /><br />JeremyAnonymousnoreply@blogger.com