|
|
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
|
|
|
|
|
I need to extract some of the data from third party website. I know we can retrive data from the div tags. but programatically how can i know the view source of that html page. I explictly know that tag name.
How can i use programatically to retive that one.
|
|
|
|
|
You can get the page using WebClient class. Work with DownloadFile or DownloadString methods. After you got the page, use regular expressions to parse the page and find information needed.
|
|
|
|
|
How you want ot access the data from other third party websites?Is there some API exposed by that site?
Cheers!!
Brij
|
|
|
|
|
I retrived data in the following way to a string
protected void Page_Load(object sender, EventArgs e)
{
WebRequest req = null;
WebResponse rsp = null;
string uri = "http://www.ancestry.com/facts/gupta-family-history.ashx";
req = WebRequest.Create(uri);
rsp = req.GetResponse();
StreamReader reader = new StreamReader(rsp.GetResponseStream());
string strdata = reader.ReadToEnd();
}
Now the string strdata contains all the HTML code. If i want to retive the data between div tag how can i extract this from that string.?
G. Satish
|
|
|
|
|
Satish - Developer wrote: If i want to retive the data between div tag
how can i extract this from that string.?
Using regular expression as I said earlier.
|
|
|
|
|
hmmm, can you give an example to how to use div tag in regular expressions ?
G. Satish
|
|
|
|
|
Satish - Developer wrote: can you give an example to how to use div tag in regular expressions
DIV tag has no relation with regular expressions. Regular expressions are patterns used to find/replace specific text. It looks like you need a book on regular expressions. Try programs like RegExBuddy/Expresso which will help you to build regular expressions.
|
|
|
|