Lars,

such in Deiner web.config das Element <httpRuntime> aus. Dort ist bestimt folgendes zu 
sehen:
maxRequestLength="10000"
Ja, genau, das sind die 10MB die maximal erlaubt werden. Durch �nderung dieses 
Attributs kannst Du gr�ssere Uploads zulassen.

Gruss
-Remas
http://www.aspalliance.com/remas

---------- Original Message ----------------------------------
From: "Lars Selle" <[EMAIL PROTECTED]>
Reply-To: "aspDEdotnet" <[EMAIL PROTECTED]>
Date: Fri, 20 Sep 2002 09:27:58 +0200

>
>hi.
>
>ich hab dank eurer wertvollen tips  es nun hinbekommen, dass der upload
>sowie das auslesen funktioniert. nun wollt ich mal ein 10 MB PDF-File
>uploaden. geht nicht. der browser f�ngt nichtmal an hochzuladen. er l�d die
>seite gleich neu und sagt aber, die seite kann nicht angezeigt werden. mach
>ich da was falsch?? geht das bei euch vielleicht??
>
>Code:
>
>string sql="";
>
>if (null != test1.PostedFile)
>{
>      const int BUFFER_SIZE = 255;
>      int nBytesRead = 0;
>      Byte[] Buffer = new Byte[BUFFER_SIZE];
>
>      MemoryStream ms = new MemoryStream();
>      Stream theStream = test1.PostedFile.InputStream;
>      nBytesRead = theStream.Read(Buffer, 0, Buffer.Length);
>      while (nBytesRead > 0)
>      {
>            ms.Write(Buffer, 0, nBytesRead);
>            nBytesRead = theStream.Read(Buffer, 0, Buffer.Length);
>      }
>      sql="Update USER_LOGIN SET DOKUMENT=? WHERE ID=123";
>      oleDbCommand1.CommandText=sql;
>      OleDbParameter myParm = oleDbCommand1.Parameters.Add("USER_LOGIN",
>OleDbType.Binary);
>      myParm.Direction=ParameterDirection.Input;
>      Byte[] bild = ms.ToArray();
>      myParm.Value = bild;
>      Response.Write(oleDbCommand1.ExecuteNonQuery());
>      oleDbCommand1.Dispose();
>}
>
>
>
>| [aspdedotnet] als [EMAIL PROTECTED] subscribed
>| http://www.dotnetgerman.com/archiv/aspdedotnet/ = Listenarchiv
>| Sie k�nnen sich unter folgender URL an- und abmelden:
>| http://www.dotnetgerman.com/listen/aspDEdotnet.asp
>


| [aspdedotnet] als [email protected] subscribed
| http://www.dotnetgerman.com/archiv/aspdedotnet/ = Listenarchiv
| Sie k�nnen sich unter folgender URL an- und abmelden:
| http://www.dotnetgerman.com/listen/aspDEdotnet.asp

Antwort per Email an