Results 1 to 8 of 8
Thread: Download Tracking
- 07-13-2007, 07:50 AM #1
Member
- Join Date
- Jul 2007
- Posts
- 5
- Rep Power
- 0
Download Tracking
Hi ,
I am downloading some files through Servlet. I want to track whether the download got completed or not through servlet.
Is there any way that i can track the downloads, whether download broke in between because of network issue or if use cancelled the download etc..
Help me out in this regard.
Thanks
Ganesh.
- 07-13-2007, 09:45 PM #2
You will need to read data from a thread. This thread will read the file from a port just like you did for a regular file. And while reading it will use a buffer. In this setting, you can count the bytes read and use that information for tracking.
And since you are writing downloading code yourself (as far as i see), you can just catch an exception when a network/IO exception occurs.
- 07-14-2007, 03:23 PM #3
Member
- Join Date
- Jul 2007
- Posts
- 5
- Rep Power
- 0
Download
Thanks for ur reply.
Presently we are redirecting the download url. No specific download code written.
Do you have any snippet of code which use to download the file.
Thanks,
Ganesh..
- 07-14-2007, 03:42 PM #4
Hi Ganesh,
I guess this example will help you a lot since all you need is there ;) :
Java Tips - How to create a download manager in Java
- 07-16-2007, 04:46 AM #5
Member
- Join Date
- Jul 2007
- Posts
- 5
- Rep Power
- 0
Thanks...I will try this out..
- 07-28-2007, 09:28 AM #6
Member
- Join Date
- Jul 2007
- Posts
- 5
- Rep Power
- 0
Download Tract
We tried the example. Data is getting buffered.
We want to track the download from the Web. We want to track whether user has completed the download process. How can we fullfil our requirement using this. Is there any seperated solution available.
Pls suggest.
Thanks
- 07-28-2007, 07:27 PM #7levent Guest
I did not understand your problem with the example given. What is missing there? It is a Java code which means you can use it in any Java application/applet including a web application.
- 07-30-2007, 04:57 PM #8
Member
- Join Date
- Jul 2007
- Posts
- 5
- Rep Power
- 0
Download
Hi,
We have given download option in our site. Normally when user clicks on download, we get save as dialoge box which is browser rendered. When user clicks on save, it is will start downloading, In between if user cancels the operation or if there is any network issue, Here we want to track whether download is been completed or not.
Pls suggest.
Thanks..
Similar Threads
-
Download JDK 1.5
By Nick15 in forum New To JavaReplies: 4Last Post: 01-01-2009, 03:10 AM -
What jdk do I download?
By padutch2 in forum New To JavaReplies: 3Last Post: 11-29-2007, 04:28 AM -
Tracking Operating System
By Mansi in forum NetworkingReplies: 2Last Post: 07-23-2007, 01:41 PM -
Track download
By nilesh.malode in forum Advanced JavaReplies: 1Last Post: 07-13-2007, 09:44 PM -
I could download JDK 1.5
By Albert in forum New To JavaReplies: 2Last Post: 07-13-2007, 03:36 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks