Click here to Skip to main content
15,887,214 members
Home / Discussions / C#
   

C#

 
GeneralRe: Impersonation and FileSystemWatcher (threading?) Pin
Heath Stewart5-Feb-04 6:29
protectorHeath Stewart5-Feb-04 6:29 
GeneralRe: Impersonation and FileSystemWatcher (threading?) Pin
Bill Dean5-Feb-04 6:54
Bill Dean5-Feb-04 6:54 
GeneralRe: Impersonation and FileSystemWatcher (threading?) Pin
Heath Stewart5-Feb-04 8:51
protectorHeath Stewart5-Feb-04 8:51 
GeneralRe: Impersonation and FileSystemWatcher (threading?) Pin
Bill Dean5-Feb-04 9:26
Bill Dean5-Feb-04 9:26 
GeneralRe: Impersonation and FileSystemWatcher (threading?) Pin
Bill Dean5-Feb-04 16:00
Bill Dean5-Feb-04 16:00 
GeneralComboBox in Grid Pin
H r M5-Feb-04 5:03
H r M5-Feb-04 5:03 
GeneralRe: ComboBox in Grid Pin
John Fisher5-Feb-04 5:29
John Fisher5-Feb-04 5:29 
GeneralObtaining VBA stored BLOB Values from a Database Pin
Paul Kennedy5-Feb-04 5:01
Paul Kennedy5-Feb-04 5:01 
I have a conundrum. I have recently been tasked with using a C# program to extract files from an Access Database. The files, Excel 2002, were stored using the following VBA based that I found on MSDN.

ACC: Reading, Storing, & Writing Binary Large Objects (BLOBs)

Further research found the following code which I thought would be the C# equivalent code so that I could extract the Excel spreadsheets back to a file. The aim of the project is that I could then email them as attachments to a central party in my company for review.

Obtaining BLOB Values from a Database

The VBA code extracts the Excel files back to their original state correctly while the C# extracted files are twice the size of the originals and totally unreadable by Excel.

Help????? What am I doing wrong?

Paul Kennedy

Father/Son/Husband/C Programmer
What else could you ask for?
GeneralRe: Obtaining VBA stored BLOB Values from a Database Pin
John Fisher5-Feb-04 5:40
John Fisher5-Feb-04 5:40 
GeneralRe: Obtaining VBA stored BLOB Values from a Database Pin
Heath Stewart5-Feb-04 6:14
protectorHeath Stewart5-Feb-04 6:14 
GeneralRegular Expression Help Pin
David Flores5-Feb-04 4:35
David Flores5-Feb-04 4:35 
GeneralRe: Regular Expression Help Pin
John Fisher5-Feb-04 5:50
John Fisher5-Feb-04 5:50 
GeneralRe: Regular Expression Help Pin
David Flores5-Feb-04 7:03
David Flores5-Feb-04 7:03 
Generalpdf 2 txt Pin
Mahesh Varma5-Feb-04 4:04
Mahesh Varma5-Feb-04 4:04 
GeneralRe: pdf 2 txt Pin
Heath Stewart5-Feb-04 6:07
protectorHeath Stewart5-Feb-04 6:07 
GeneralRe: pdf 2 txt Pin
Daniel Turini5-Feb-04 8:56
Daniel Turini5-Feb-04 8:56 
GeneralRe: Challenge: Generating Signed Serial Numbers Pin
Heath Stewart5-Feb-04 5:40
protectorHeath Stewart5-Feb-04 5:40 
GeneralRe: Challenge: Generating Signed Serial Numbers Pin
Heath Stewart5-Feb-04 8:39
protectorHeath Stewart5-Feb-04 8:39 
GeneralRe: Challenge: Generating Signed Serial Numbers Pin
Heath Stewart5-Feb-04 11:24
protectorHeath Stewart5-Feb-04 11:24 
GeneralRe: Challenge: Generating Signed Serial Numbers Pin
Heath Stewart6-Feb-04 1:16
protectorHeath Stewart6-Feb-04 1:16 
QuestionHow to implement "Open With Dialog Box" in .NET Pin
Shailaja5-Feb-04 3:08
Shailaja5-Feb-04 3:08 
AnswerRe: How to implement "Open With Dialog Box" in .NET Pin
Heath Stewart5-Feb-04 5:53
protectorHeath Stewart5-Feb-04 5:53 
Generalfull screen maximize Pin
Blue_Aqua5-Feb-04 2:58
Blue_Aqua5-Feb-04 2:58 
GeneralRe: full screen maximize Pin
occcy5-Feb-04 4:41
occcy5-Feb-04 4:41 
GeneralRe: full screen maximize Pin
Blue_Aqua5-Feb-04 17:27
Blue_Aqua5-Feb-04 17:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.