|
'does not work' are three little words that can mean so much. How does it not work ? What makes you think the compare validator knows how to compare two dates ? I would assume it's going to do a string compare, which means it will compare the two first characters, and only move on if they are the same, is that what's happening ?
I doubt it can do date compares, although I know there's a property to tell it what sort of comparison to do. I suspect you need to write your own JS to do this.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi folks,
I need to upload a large file say 30 MB to my server (physical location).
For this i want to use streams... with out database support.
Any help... Thanks in advance
|
|
|
|
|
Have a google, there's loads of examples for uploading files and saving them to disk.
In ASP.net, you'll have to change the default maxRequestLength in the HttpRuntime tag in the web.config to permit you to upload very large files.
|
|
|
|
|
Hey thanks for responding...
Yes i tried with HTTPREQUEST tag in web.config file.. but i don't want to use it as it efects my performance. I want to use streams.
|
|
|
|
|
OK - so you're saying you have absolutely no idea what ASP.NET is, or what it does ? I suggest you buy a basic book, and read it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I didn't said i don't have absolute idea of ASP.NET..
I am asking help for uploading a file using streams..
and thanks for ur great answer of buying a asp.net book..
If you have any idea else don't waste your time..
|
|
|
|
|
guntupalli_hanu wrote: I didn't said i don't have absolute idea of ASP.NET..
It was clearly understood if someone reads your post.
guntupalli_hanu wrote: I am asking help for uploading a file using streams..
Do you know what is a stream? And can you tell me how it is related with ASP.NET uploads?
guntupalli_hanu wrote: don't waste your time..
|
|
|
|
|
|
No, actually, that is not true. This article is about streaming files, which basically means that the input stream is stuffed into the DB in chunks, not all in one go. It has NOTHING to do with streams, excepting that a stream is used. You meant to ask about streaming files, not using streams. And, you have this article, so why are you asking us ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Thanks for getting me... In that article they are using database for storing chunks of data..
is it possible to do the same with out using database tables.
|
|
|
|
|
Well, the point of the article is entirely to save you creating a byte array in memory of the whole file. If you're going to save the file to disc, it will use no memory at all, so the article becomes irrelevant.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
guntupalli_hanu wrote: I didn't said i don't have absolute idea of ASP.NET..
That's right - I did.
guntupalli_hanu wrote: I am asking help for uploading a file using streams..
I know. And, because the only way you can upload a file from the client is through what ASP.NET sends to the client, which is html, css and javascript, it's plain that you have no idea what ASP.NET is, or what it does. As I said.
guntupalli_hanu wrote: and thanks for ur great answer of buying a asp.net book..
you're welcome. You plainly need it. Would you like me to recommend one ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I didn't said i don't have absolute idea of ASP.NET..
I am asking help for uploading a file using streams..
and thanks for ur great answer of buying a asp.net book..
If you have any idea ofusing streams for uploading files please respond
else don't waste your time..
|
|
|
|
|
guntupalli_hanu wrote: I didn't said i don't have absolute idea of ASP.NET..
Yes, you did.
guntupalli_hanu wrote: If you have any idea ofusing streams for uploading files please respond
See - you just said it again.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
|
That article is wrong. It just uses FileUpload.PostedFile.InputStream and saying that it is efficient. InputStream property is getting filled only when the complete file has been send from client to server through HTTP. So it makes no difference in the speed.
|
|
|
|
|
Yes, I understand now how your poor grasp of english is part of the issue, and I apologise for that, because that's not your fault. But, if you ask to upload files using streams, the only logical assumption is that you want some sort of a stream on the client side. That's not how it works, the file is uploaded and the ASP.NET control provides the file as a stream. This article is about not loading the entire file into memory before storing into a DB, but reading it a bit at a time, in order to save memory on the server. It will NOT make the file upload faster, nor can it. It will simply use less memory to store the file. Again, if you know anything about ASP.NET, there is ONE HTML upload control, and that's your only option to upload a file using ASP.NET. It will always work the same, until it hits the server.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Please don't say ... " If i know asp.net".. I know asp.net.. and it's controls well..
any way can you suggest the uploading large file by streaming with out using database...
Accha i have a question.. how rapidshare and other file upload sites manage their uploads..??
|
|
|
|
|
guntupalli_hanu wrote: any way can you suggest the uploading large file by streaming with out using database...
You're not getting it. Streaming in this case is the streaming of the file, from the file upload control, on the server, to the database. It has nothing to do with uploading files faster, in fact, it's probably a tiny bit slower. It's for saving memory on the server side.
guntupalli_hanu wrote: Accha i have a question.. how rapidshare and other file upload sites manage their uploads..??
Probably by writing a java ( or .NET if it's IE only ) control and embedding it within the page. Then you can do any sort of operation you like, including selecting multiple files, etc. I use Godaddy as a web host, and their FTP client is written in Java, for example.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Thnaks for being with me..
Ok now i got you.. dont bother about the time... send me some useful syntax of streaming the file from the upload control, to the server ( here i am using my local machine.. so i want to upload file to c:\uploadFiles\ )
Thanks in advance
|
|
|
|
|
I don't have any idea how to write a java component to do that, I just know that's how it's done.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hello Buddy!!
This is nt a ways 2 do in this forum .. actually the people doesnt know the concept then only they ll come into ths forum .. just share our views each other ..
thanks 2 all..
|
|
|
|
|
Sorry for u guys.. for wasting your time.. if you felt that this is the useless discussion.. i request to admin to please delete this thread..
|
|
|
|
|
No prob Buddy!!
Let It leave Bcos if others also see this thread .. then they ll also realise some thing wont be do these kind of things..
Some Thing need 2 do NEW
|
|
|
|
|
Hi,
When my Detailsview enters Edit Mode some Fields becomes invisible because I used the attribute InsertVisible = false.
But a RequiredField inside invisible TemplateFields is still working even in Edit Mode.How could I fix this strange problem?!
I am too late but i will never give up
|
|
|
|