Oracle BLOB, unhandled data type beim BinaryWrite

From: urs vonhuben (pushbike_at_hotmail.com)
Date: 03/30/04


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



Relevant Pages

  • Re: Oracle on Red Hat best practices
    ... Oracle on Red Hat best practices ... Avoid raw devices if at all possible. ... Backups are most critical, ...
    (RedHat)
  • Re: Oracle RAC and raw disks
    ... Oracle dba myself. ... I've done some small RAC implementations ... and I've always gotten by with AIX RAW LV's just fine. ... Let's get that DBA on this list. ...
    (AIX-L)
  • Re: IBM AIX RISC System/6000 Error: 22: Invalid argument
    ... into a 'raw filesystem' doesn't work. ... I think you really need to ask some Oracle folks about this, ... raw data to the device is no garantee Oracle will recognize it as a raw ...
    (comp.unix.aix)
  • Re: VW7.3 Long RAW --> BLOB in Oracle9i
    ... >> I am using the lens to get through to Oracle but BLOB or CBLOB is not ... > the types are only used as switches for Oracle behaviour. ... > database facilities for any data processing. ... > Oracle long raw class and have had no problems. ...
    (comp.lang.smalltalk)