Does anybody know how can I upload an image file in a specific folder without post back
using c# .
There is no way to do this. But you can accomplish it using AJAX. Take a look at jquery and some it's plugins, for example jQuery File Upload Plugin
You could use flash and an HttpHandler to prevent the requirement for a postback.
I have use this example in the past: http://www.codeproject.com/KB/aspnet/FlashUpload.aspx
Related
Is it possible to compress images upon upload directly from AsyncFileUpload? If yes, can you guide me how?
For example: I have a user that uploads an image .jpeg with size 1200x1600 (5MB) and I want to compress it into a 600x800 (1MP~2MB) file. As much as possible I have to do this on client side just before I upload it to server.
Thank you.
You can take a look at DotNetZip library. I think you will find your solution there.
On HTML5 browser, you can use the solution in this answer, otherwise you're stuck with requiring your client to use a plugin (Java, Flash, Silverlight) etc.
I am currently building a little application based on watin that log in into a website and then start going through a serie of URL to download PDF files using Watin.
The website uses a lot of javascript to load pdf in embedded HTML.
The program works fine for now but is very slow since watin doesn't handle downloads very efficiently ( It uses Firefox download system and type slowly filename before saving.
I would like to know if there is a better framework for Web Scraping that could provide the same support for Ajax sites but better / faster way to download files.
I've been all around the web and found about selenium, but it doesn't present itself as more efficient than watin concerning file downloading.
Thanks in advance for your help.
You could write a Google Chrome extension using these two APIs as the main engine:
https://developer.chrome.com/extensions/webRequest.html
to know when and how to authenticate and when to start download and:
https://developer.chrome.com/extensions/downloads.html
to start the download of the file.
Whatever is missing from these two APIs for you to achieve your goal, you can compensate with a custom content script - a javascript that is injected into the page that is opened by the extension - and for example hook into the jquery's .ready event to initialize scraping.
These will definitely be faster than Watin since writing for watin is a layer of abstraction more than talking to the browser directly.
i write a code using asp.net C# to generate a thumbnail when a video file selected using fileupload control, and display it in gridview. so, what i wanna do is when image in gridview was clicked, it should play the video corresponding to the video where the particular thumbnail is created without involving database?
There must be a Jquery plugin that solves the problem. I know there is many jQuery video plugins out there, just search for it. Why would you involve database? Can't you just include video files in your project and create a link from your images?
I dont know if this will solve your problem but worth checking out:
Simple jQuery video plugin
If you decide to use database I would suggest to keep it simple and use MySQL which is free and easy to setup.
Let me explain better than what the question state. I dynamically generate a KML file from an aspx page and use routing to change the url so I can access myapp.com/mykml.kml and the download starts. I use Response.write() in the aspx page to send the data and it work flawlessly. But there is a zipped version for KML files which is KMZ and I am wondering if I can still use my aspx page to serve a KMZ instead of a KML. Since I do not use a file I cannot "zip" it. Is there a way to zip the stream and output it in the Response.Write()?
Yes, you can: ASP.NET - Create Google Earth .kmz files dynamically using in-memory streams and #ziplib
i need to implement the file upload progress in my web page
i have five file upload controls in my page and i want to show the upload progress for each file upload separately.
i there any way to do this.
Thanks
Muthuraman.
This is my project so you can use it http://managemedia.codeplex.com/
Without any flash or silverlight similar facebook and gmail.
You can use ajaxupload or consult Matt Berseth's article]
PS:- I don't know if ajaxupload is free or paid
I have tried all of them, this one has turned out to be best. Very easily integrates. No deployment issues.
alt text http://darrenjohnstone.net/wp-content/uploads/2008/07/uploadsmall.png
alt text http://darrenjohnstone.net/wp-content/uploads/2008/07/uploadcontrol.png
http://darrenjohnstone.net/2008/07/15/aspnet-file-upload-module-version-2-beta-1/