Help ADODB.Stream error '800a0bbc'

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

    Help ADODB.Stream error '800a0bbc'

    Hi All,

    I am trying to open a binary stream from a file and the creating a new stream from the opened stream and then trying to over wright the file and i am getting the following error

    ADODB.Stream error '800a0bbc'

    Write to file failed.

    /cops/RestartV1.asp, line 80


    I Used adSaveCreateOve rWrite option fot savetoFile and itried writing files with other name in the sam folder and its working fine
  • jeffstl
    Recognized Expert Contributor
    • Feb 2008
    • 432

    #2
    Post the code area which the error is generated.

    Sounds like a
    A) permissions issue
    B) locking issue
    C) logic or syntax problem

    There are alot of reasons this could be happening. Try here too

    write to file failed

    Comment

    • gauravgmbhr
      New Member
      • Feb 2007
      • 107

      #3
      Originally posted by jeffstl
      Post the code area which the error is generated.

      Sounds like a
      A) permissions issue
      B) locking issue
      C) logic or syntax problem

      There are alot of reasons this could be happening. Try here too

      write to file failed
      I told you in my previous issue that i am able to write file with different name. So definitely not the permission issue
      I am trying to overwrite a file that i have opened in binary mode. I have closed the stream before writing to the file.

      I think the file is getting locked by the ASP script. but i opened the file in share mode.

      Comment

      • jhardman
        Recognized Expert Specialist
        • Jan 2007
        • 3405

        #4
        by default overwriting an existing file is prohibited. There is a constant you can add to the line where you open the stream that can change that default setting. Show some more of your code (especially the line where you set your stream object) and I might be able to help.

        BTW, I tried in the past and couldn't get the ADO.STREAM object to work for saving files to the server. I found a workaround (it's in the ASP Howto section, the title is something about uploading files with ASP) and that might work for you. Let me know if this helps.

        Jared

        Comment

        Working...