Professional Web Applications Themes

ADO Stream object - ASP Components

I'm trying to execute the piece of code below: Const adTypeBinary = 1 Dim BinaryStream Set BinaryStream = CreateObject("ADODB.Stream") 'Specify stream type - we want To get binary data. BinaryStream.Type = adTypeBinary 'Open the stream BinaryStream.Open URL=http://server/docs/mydocs/myfile.jpg As soon as the Open method is executed I get the follwoing message: Microsoft OLE DB Service Components error '80040e19' Object or data matching the name, range, or selection criteria was not found within the scope of this operation. The code above works well when I run it locally against my local instance of IIS5.0. When I load it into my ISP server, ...

  1. #1

    Default ADO Stream object

    I'm trying to execute the piece of code below:

    Const adTypeBinary = 1
    Dim BinaryStream
    Set BinaryStream = CreateObject("ADODB.Stream")

    'Specify stream type - we want To get binary data.
    BinaryStream.Type = adTypeBinary

    'Open the stream
    BinaryStream.Open
    URL=http://server/docs/mydocs/myfile.jpg

    As soon as the Open method is executed I get the follwoing
    message:
    Microsoft OLE DB Service Components error '80040e19'

    Object or data matching the name, range, or selection
    criteria was not found within the scope of this operation.

    The code above works well when I run it locally against my
    local instance of IIS5.0. When I load it into my ISP
    server, I get the error message above.

    Thanks for the help.
    Pedro.
    Pedro Guest

  2. #2

    Default Re: ADO Stream object

    well, you HAVE shown a local URL. I'd guess the ISP's server doesn't
    know where to find that URL (because it's a local URL, y'see?)






    ________________________________________
    Atrax. MVP, IIS
    [url]http://rtfm.atrax.co.uk/[/url]

    newsflash : Atrax.Richedit 1.0 now released.
    [url]http://rtfm.atrax.co.uk/infinitemonkeys/components/Atrax.RichEdit/[/url]

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Atrax Guest

  3. #3

    Default Re: ADO Stream object

    "Pedro" <anonymousdiscussions.microsoft.com> wrote in message
    news:e06d01c3efe5$edc92ec0$a501280aphx.gbl...
    > I'm trying to execute the piece of code below:
    >
    > Const adTypeBinary = 1
    > Dim BinaryStream
    > Set BinaryStream = CreateObject("ADODB.Stream")
    >
    > 'Specify stream type - we want To get binary data.
    > BinaryStream.Type = adTypeBinary
    >
    > 'Open the stream
    > BinaryStream.Open
    > URL=http://server/docs/mydocs/myfile.jpg
    use URL=http://localhost/docs/mydocs/myfile.jpg

    --
    compatible web farm Session replacement for Asp and Asp.Net
    [url]http://www.nieropwebconsult.nl/asp_session_manager.htm[/url]

    Egbert Nierop \(MVP for IIS\) Guest

Similar Threads

  1. Handling Object Stream / Cross Ref stream in PDF 1.4
    By quriocity@adobeforums.com in forum Adobe Acrobat Macintosh
    Replies: 1
    Last Post: September 7th, 04:41 AM
  2. can stream LIVE, but can't stream FLV -=
    By adamscott30 in forum Macromedia Flash Flashcom
    Replies: 1
    Last Post: July 17th, 10:09 PM
  3. Replies: 2
    Last Post: June 6th, 04:02 PM
  4. Delete stream object
    By csacchetti in forum Macromedia Flash Flashcom
    Replies: 0
    Last Post: May 13th, 04:16 PM
  5. Replies: 3
    Last Post: September 29th, 03:25 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139