Monday, February 22, 2010

Java File Upload With Broken Resume and ProgressBar

Java File Upload With Broken Resume and ProgressBar


Internet connection broken is the very common problem with of all us.
When we all upload large/small file, we need uninterrupted internet connection supply.

If net connection breaks, then need to upload files again. And if net break many times during Uploading file then need many times to upload file.

I have faced this problem many-many times, I was uploading very huge size data.
It is very time taking, frustrating to upload one file many times.
So I have created this file uploader which having resume facility, it will upload file from the position, where net connection was broken. I have created it in three very popular web languages.

1) JSP/SERVLET
2) PHP
3) ASP.NET (CS, VB)

===================
How to Test?
===================
You can test it, just setup this uploader in you server,
I have given the code in the three languages which are widely used in computer world.
1) JSP/SERVLET,
2) PHP
3) ASP.NET (VB/CS) and made each directory for that.

When uploader upload the file, it will show the progress bar and percentage of data for ex: 1%, 10% etc.

Now this is the time for test, just unplugged you internet cable, then you can see after 4 or 10 second one button's text will be changed in this text "Resume" and a message will be appeared" net connection is broken click on resume button to process".

Now plugged in the internet cable and click on “Resume Button”.
Uploader will start from the position from where net connection was disconnected.


=============================
What we need for this Uploader?
=============================
Only Latest JRE, you can find/download it from Sun Site.


=================================
Where is Other Instruction?
=================================

I have made each instruction readme.txt in the JSP, SERVELT, DOTNET, CS, VB, PHP directory. Just read that file.


-Amit

Wednesday, February 17, 2010

Convert an EPS file in to JPEG in ASP.net

Convert an EPS file in to JPEG in ASP.net

Here is the asp.net code, which convert .eps file to .jpeg file.

Just download here