aaronburro Sup, B 53142 Posts user info edit post |
Has anyone ever tried to convert OLE objects from a database to files on disk? I've googled the hell out of this, and the only thing I found remotely close to it doesn't work. It looks like all of the file data is actually right there, you just have to strip off the header and maybe a footer. Has anyone done this before, and if so, how the F did you do it? 2/6/2012 5:33:47 PM |
Wolfmarsh What? 5975 Posts user info edit post |
Holy shit do i feel your pain.
So, I actually have done this.... 96% of the way there.
It works for about 90% of the OLE entries i've tried, but eats some of the files in the others. There are actually two versions of OLE, and both of them have variable length headers. There is an entire file system contained within the OLE object, almost like a fucked up zip file.
I would be willing to put the library up on google code or something if you want to contribute to it and help iron out the last few bugs?
PM me if you wanna talk about it more. 2/6/2012 8:02:43 PM |
lewisje All American 9196 Posts user info edit post |
I'm guessing you're wanting to do this from a script, because I always thought it was as simple as right-click->"Save As" 2/6/2012 9:47:38 PM |
aaronburro Sup, B 53142 Posts user info edit post |
Apparently Microsoft knew it was a garbage idea, so they didn't even make anything remotely similar to it in .NET. jackasses 2/7/2012 12:56:32 PM |
Wolfmarsh What? 5975 Posts user info edit post |
For anyone that cares to contribute, I have put the code up on codeplex:
http://recoveroleblob.codeplex.com 2/7/2012 1:49:39 PM |
qntmfred retired 40810 Posts user info edit post |
oops, you wrote all your code in VB by accident 2/7/2012 1:52:00 PM |
Wolfmarsh What? 5975 Posts user info edit post |
I know something looked off.... 2/7/2012 2:06:13 PM |