Oracle BLOB, unhandled data type beim BinaryWrite
From: urs vonhuben (pushbike_at_hotmail.com)
Date: 03/30/04
- Next message: Jochen: "Re: HTTP 500.100 Interner Serverfehler"
- Previous message: Heidrun Heck: "Re: ASP Login, daten auslesen"
- Next in thread: Stefan Falz [MVP]: "Re: Oracle BLOB, unhandled data type beim BinaryWrite"
- Reply: Stefan Falz [MVP]: "Re: Oracle BLOB, unhandled data type beim BinaryWrite"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 30 Mar 2004 16:41:49 +0200
hallo
zuerst mal die eckdaten:
- IIS 5.0.4
- Oracle 8.1.7
- Oracle ODBC Driver 8.1.7
dann mal den code (entspricht im grossen und ganzen dem beispielcode von
microsoft):
<%@ LANGUAGE="VBSCRIPT" %>
<%
'Clear existing HTTP header information.
'Response.Expires = 0
'Response.Buffer = TRUE
'Response.Clear
'Set the HTTP header to an image type, if you want to display
'a jpg you need to use the "image/jpeg" content type.
Response.ContentType = "image/jpeg"
Dim strTemp
Set oConn = Server.CreateObject("ADODB.Connection")
'You need to change this line to reflect your DSN, UID
'and PWD.
oConn.Open "Driver={ORACLE ODBC
DRIVER};DBQ=HCWE5D;UID=webdb;PWD=webdb;DBA=W;FRL=F;"
'Change this line to use your table that contains a raw or
'long raw field. In this case, ID is the primary key of the
'IMAGE table and IMG is the RAW or LONG RAW data column.
sSQL = "Select doc, doc_bez from t_duck_dokument where doc_nr = 2"
'The cursor type does not seem to matter. A keyset cursor was used
'with success for this article; however, you will not be able to
'scroll with it because the content type of this page is set for
'"image/gif".
'oRS.Open
set oRS = oConn.Execute(sSQL)
Response.BinaryWrite (oRS("doc"))
Response.End
oRS.Close
Set oRS = nothing
oConn.Close
Set oConn = nothing
%>
dann noch die fehlermeldung:
Response object, ASP 0106 (0x80020005)
An unhandled data type was encountered.
dann noch ein paar zusatzinformationen was bisher geschah bzw. nix nützte
- msdaora treiber wurde auf version 2.573 upgegraded (hatte "Data type is
not supported" beim erstellen des recordset. eine suche im deja ergab dass
ein wechsel auf den oracletreiber dies behebt.
- msdaora treiber wurde durch oracletreiber ersetzt, neuer fehler "Response
object, ASP 0106 (0x80020005)
An unhandled data type was encountered"
- als debug wurde die existenz des rs getestet (ok) und das datenfeld auf
null überprüft (nixht null)
- daten sind ein jpg, ContentType ist image/jpeg
- als debug wurde versucht datenfeld mit response.write als test/plain
auszugeben > keine ausgabe (andere datenfelder desselben records können
ausgegeben werden)
dann meine frage:
was mach ich denn eigentlich falsch?
bin für jeden hilfsansatz der über "such doch im web" hinausgeht dankbar
gruss & dank
urs vonhuben
- Next message: Jochen: "Re: HTTP 500.100 Interner Serverfehler"
- Previous message: Heidrun Heck: "Re: ASP Login, daten auslesen"
- Next in thread: Stefan Falz [MVP]: "Re: Oracle BLOB, unhandled data type beim BinaryWrite"
- Reply: Stefan Falz [MVP]: "Re: Oracle BLOB, unhandled data type beim BinaryWrite"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|