Print Page | Close Window

Large File Progress Indicator

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=681
Printed Date: 05-May-2025 at 2:17am


Topic: Large File Progress Indicator
Posted By: JPeacock
Subject: Large File Progress Indicator
Date Posted: 08-Feb-2008 at 1:07pm
Hi,
I've recently used Ideablade to create an "Attachment" section for our program.  Allowing users to upload and download to the database any file they want.  It works great for small files.  But the larger the file gets the longer the pause is (naturally), and I was told to not restrict the size of the files because we don't know the file sizes the users will be uploading.  For some larger files the program looks frozen.  Don't get me wrong I think the transfer rate is good, but in my implementation the user can't do anything until the SaveChanges has completed. 
 
I thought maybe of using a progress bar to indicate how much of the attachment is transfered and that the program isn't frozen.   Is this possible?  Is there anyway of finding out that say a block of 128, 256, 512 or even 1024 kb has been transfered?  Which i could then use to increment my progress bar.
 
Or should I just go back to the designer and say we have to cap it?  Should I try an Async style save which I read about on these forums. 
 
I'm saving using the following
mPerManager.SaveChanges(New Attachment() {AttachmentBS.Current})
 
Any suggestions?



Replies:
Posted By: davidklitzke
Date Posted: 11-Feb-2008 at 12:41pm
You should be able to do this with a file progress indicator, but this is not a DevForce feature.  It is a .NET feature.  I would search the Internet for an example of how to do this.



Print Page | Close Window