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

C#

 
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 
GeneralRe: Obtaining VBA stored BLOB Values from a Database Pin
John Fisher5-Feb-04 5:40
John Fisher5-Feb-04 5:40 
Hi Paul,
First, I'm assuming that your code matches exactly with that from the links (except for the data source settings).
Second, I'm assuming that the data in the BLOB was generated by your VB code and not some other software.

In my experience, a size difference of exactly 2x normally indicates an ASCII vs. Unicode issue. Looking quickly at the links you provided, the VB code may actually storing a Unicode (2 byte) value in the database for each byte that was loaded into the string. IF that is the case, the VB code handles this when it reverses the loads the Blob that it had stored previously. However, the C# code is being precise by avoiding any translation to or from a string.
Take a hard look at the actual bytes coming back through the C# blob request. If every other byte is a zero, it is very probable that the VB code stored extra data. To solve this, you could either re-write the correct data into the database, or strip the extra byte from the values returned when the C# code gets the BLOB data.


John

"You said a whole sentence with no words in it, and I understood you!" -- my wife as she cries about slowly becoming a geek.

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 
GeneralPointers to Interfaces for COM Pin
Tristan Rhodes5-Feb-04 2:24
Tristan Rhodes5-Feb-04 2:24 

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.