Problem in ADO binary Stream

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gauravgmbhr
    New Member
    • Feb 2007
    • 107

    Problem in ADO binary Stream

    Hi All,
    I am a newbie to ASP. Can some one tell me what wrong in the code.
    I am trying to write data from HTML text area to an binary ADO stream.
    Code:
          temp  = split(inString,vbcrlf)  //inStr in a plaing sting from text area
          For i = 1 To UBound(temp)
              pos = pos + 46
              binBuff = StringToBinary(temp(i))
              outStream.Write(buff)
          Next
          Function StringToBinary(ANSI)
            Dim I
            Dim s
            For I = 1 To Len(ANSI)
              S = S & ChrB(Asc(Mid(ANSI, I, 1)))
            Next
            StringToBinary = S
          End Function
    I am getting
    ADODB.Stream error '800a0bb9'

    Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
    For line thatz writing to binary stream
    Regards,
    Gaurav
  • DrBunchman
    Recognized Expert Contributor
    • Jan 2008
    • 979

    #2
    Hi Gaurav,

    Please don't double post your questions - I've deleted your other post on this topic. If you need to edit a post after posting it you can do so by clicking on the edit button underneath it.

    Which line is this error on? Is it
    Code:
    outStream.Write(buff)
    Dr B

    Comment

    • gauravgmbhr
      New Member
      • Feb 2007
      • 107

      #3
      Originally posted by DrBunchman
      Hi Gaurav,

      Please don't double post your questions - I've deleted your other post on this topic. If you need to edit a post after posting it you can do so by clicking on the edit button underneath it.

      Which line is this error on? Is it
      Code:
      outStream.Write(buff)
      Dr B
      Yes this is the line which has error

      Comment

      Working...