Click here to Skip to main content
15,888,113 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionASP.Application is giving "An unhandled win32 exception occured in w3wp.exe The Just-In-Time debugger was launched without necessary security permissions" error Pin
indian14320-Apr-15 7:48
indian14320-Apr-15 7:48 
AnswerRe: ASP.Application is giving "An unhandled win32 exception occured in w3wp.exe The Just-In-Time debugger was launched without necessary security permissions" error Pin
indian14320-Apr-15 10:20
indian14320-Apr-15 10:20 
Questionquestion Pin
yousfi amina19-Apr-15 0:20
yousfi amina19-Apr-15 0:20 
AnswerRe: question Pin
Richard Andrew x6419-Apr-15 13:00
professionalRichard Andrew x6419-Apr-15 13:00 
QuestionHow to write to fileOutputStream mapped to physical file c# Pin
Tridip Bhattacharjee17-Apr-15 10:04
professionalTridip Bhattacharjee17-Apr-15 10:04 
QuestionRe: How to write to fileOutputStream mapped to physical file c# Pin
jkirkerx17-Apr-15 13:04
professionaljkirkerx17-Apr-15 13:04 
AnswerRe: How to write to fileOutputStream mapped to physical file c# Pin
Tridip Bhattacharjee18-Apr-15 7:48
professionalTridip Bhattacharjee18-Apr-15 7:48 
AnswerRe: How to write to fileOutputStream mapped to physical file c# Pin
jkirkerx19-Apr-15 12:09
professionaljkirkerx19-Apr-15 12:09 
The example you referenced shows how to load a file on the server into a memory stream, and then convert it to a zip or compressed file, and then package the file for download. Then it will prompt the browser to download the zip file.

The 2nd example on your reference shows a better way to write the code, the first example that you copied is the version that doesn't work very well, and has problems. Use the 2nd example.

But in hindsight, the codes function doesn't match what you want to do.
Could of swore that you want to upload the compressed file to the server.

So in button click, on the client machine, in the first code block where you read the file data from the database, you just read the reader, and get the bytes and store them in a buffer. Then close the database, exit the data function.

Now chop up the bytes into 4096 blocks or what ever value you choose.
So measure the byte buffer and get it's length, then divide the length by 4096, that's how many loops you need.
And then seek or start at 0, and grab 4096 chuck of bytes, then write the file, grad the next 4096 chunk of bytes, write the file and so on.

Make sure your files exist in a temp storage place like App_Data.
Get that working smooth first before you try to upload the files to the server.

QuestionMake image appear after div, and next dive appear after image Pin
indian14316-Apr-15 9:29
indian14316-Apr-15 9:29 
AnswerRe: Make image appear after div, and next dive appear after image Pin
jkirkerx16-Apr-15 13:24
professionaljkirkerx16-Apr-15 13:24 
QuestionBulk insert using table value parameter hangs my application Pin
Malikdanish15-Apr-15 21:04
professionalMalikdanish15-Apr-15 21:04 
AnswerRe: Bulk insert using table value parameter hangs my application Pin
jkirkerx16-Apr-15 8:58
professionaljkirkerx16-Apr-15 8:58 
GeneralRe: Bulk insert using table value parameter hangs my application Pin
Malikdanish16-Apr-15 9:04
professionalMalikdanish16-Apr-15 9:04 
GeneralRe: Bulk insert using table value parameter hangs my application Pin
jkirkerx16-Apr-15 10:41
professionaljkirkerx16-Apr-15 10:41 
GeneralRe: Bulk insert using table value parameter hangs my application Pin
Malikdanish16-Apr-15 20:45
professionalMalikdanish16-Apr-15 20:45 
GeneralRe: Bulk insert using table value parameter hangs my application Pin
jkirkerx17-Apr-15 8:02
professionaljkirkerx17-Apr-15 8:02 
GeneralRe: Bulk insert using table value parameter hangs my application Pin
Malikdanish17-Apr-15 18:29
professionalMalikdanish17-Apr-15 18:29 
GeneralRe: Bulk insert using table value parameter hangs my application Pin
jkirkerx19-Apr-15 9:18
professionaljkirkerx19-Apr-15 9:18 
Questionissue wih gridview Pin
Praveen Kandari15-Apr-15 0:20
Praveen Kandari15-Apr-15 0:20 
SuggestionRe: issue wih gridview Pin
ZurdoDev15-Apr-15 3:31
professionalZurdoDev15-Apr-15 3:31 
AnswerRe: issue wih gridview Pin
User 418025410-Jul-15 11:18
User 418025410-Jul-15 11:18 
GeneralRe: issue wih gridview Pin
Praveen Kandari15-Jul-15 19:17
Praveen Kandari15-Jul-15 19:17 
GeneralRe: issue wih gridview Pin
User 418025416-Jul-15 2:21
User 418025416-Jul-15 2:21 
QuestionHow to fix “Googlebot can't access your site” issue? Pin
Tridip Bhattacharjee14-Apr-15 21:16
professionalTridip Bhattacharjee14-Apr-15 21:16 
AnswerRe: How to fix “Googlebot can't access your site” issue? Pin
Richard Deeming15-Apr-15 1:38
mveRichard Deeming15-Apr-15 1:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.