Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > !!HELP!!!! - Request.BinaryRead(Request.TotalBytes) error

Reply
Thread Tools

!!HELP!!!! - Request.BinaryRead(Request.TotalBytes) error

 
 
erin.sebastian@cowaninsurancegroup.com
Guest
Posts: n/a
 
      12-01-2005
Hello All,
I've never written code to upload in ASP before and now i have taken
over someone elses code and am having problems with their file upload
stuff (meant to upload pdf files). It looks to me like it's failing on
the line that says Request.BinaryRead(Request.TotalBytes). I know that
i am using POST in the form header and also
enctype="multipart/form-data" (i don't know if that means anything
thought) I have NO IDEA what's going on, i am relatively new to the old
asp ways and i could really use a hand. THis is the function that has
the line it's failing on. I should also say that the code is posted on
the people who created it's website and it's working but won't work on
my development server. Any tips would surely help i am STUCK

Sub
ProcessUpload(pau_thePath,pau_Extensions,pau_Redir ect,pau_storeType,pau_sizeLimit,pau_nameConflict,p au_requireUpload,pau_minWidth,pau_minHeight,pau_ma xWidth,pau_maxHeight,pau_saveWidth,pau_saveHeight, pau_timeout)
Server.ScriptTimeout = pau_timeout
pau_doPreUploadChecks pau_sizeLimit
RequestBin = Request.BinaryRead(Request.TotalBytes)
Set UploadRequest = CreateObject("Scripting.Dictionary")
pau_BuildUploadRequest RequestBin, pau_thePath, pau_storeType,
pau_sizeLimit, pau_nameConflict
If pau_Redirect <> "" Then
If UploadQueryString <> "" Then
pau_Redirect = pau_Redirect & "?" & UploadQueryString
End If'
Response.Redirect(pau_Redirect)
end if
End Sub

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0xffc Thread 0x228 DBC 0x437b94 Jet'. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr bazzer ASP .Net 0 03-30-2006 03:16 PM
Error connecting to SQLExpress 2005 locally (error: 26 - Error Locating Server/Instance Specified) hfk0 ASP .Net 2 03-27-2006 08:43 PM
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x8fc Thread 0x934 DBC 0x437b94 Jet'. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr bazzer ASP .Net 1 03-24-2006 04:20 PM
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x8fc Thread 0x934 DBC 0x437b94 Jet'. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr bazzer ASP .Net 0 03-24-2006 02:22 PM
Error 500: ERROR: Cannot forward. Writer or Stream already obtained. Error JavaQueries Java 1 03-01-2005 06:30 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57