By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,190 Members | 1,555 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,190 IT Pros & Developers. It's quick & easy.

Help ADODB.Stream error '800a0bbc'

gauravgmbhr
100+
P: 107
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 adSaveCreateOverWrite option fot savetoFile and itried writing files with other name in the sam folder and its working fine
Aug 6 '08 #1
Share this Question
Share on Google+
3 Replies


jeffstl
Expert 100+
P: 432
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
Aug 6 '08 #2

gauravgmbhr
100+
P: 107
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.
Aug 7 '08 #3

jhardman
Expert 2.5K+
P: 3,405
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
Aug 8 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.