Click here to Skip to main content
15,911,035 members
Home / Discussions / C#
   

C#

 
GeneralASP.NET question Pin
User 988528-Aug-02 5:16
User 988528-Aug-02 5:16 
GeneralInterop reference problem... Pin
Ryan Cromwell28-Aug-02 4:48
Ryan Cromwell28-Aug-02 4:48 
QuestionHow to read Embedded Resource in Assembly (File) ? Pin
Chris Richner28-Aug-02 3:15
Chris Richner28-Aug-02 3:15 
AnswerRe: How to read Embedded Resource in Assembly (File) ? Pin
James T. Johnson28-Aug-02 6:31
James T. Johnson28-Aug-02 6:31 
GeneralImage field in database Pin
Mazdak28-Aug-02 3:05
Mazdak28-Aug-02 3:05 
GeneralRe: Image field in database Pin
Nnamdi Onyeyiri28-Aug-02 3:10
Nnamdi Onyeyiri28-Aug-02 3:10 
GeneralRe: Image field in database Pin
Mazdak28-Aug-02 3:14
Mazdak28-Aug-02 3:14 
GeneralRe: Image field in database Pin
Nnamdi Onyeyiri28-Aug-02 6:22
Nnamdi Onyeyiri28-Aug-02 6:22 
GeneralRe: Image field in database Pin
Mazdak28-Aug-02 6:43
Mazdak28-Aug-02 6:43 
GeneralRe: Image field in database Pin
Paul Riley28-Aug-02 3:18
Paul Riley28-Aug-02 3:18 
GeneralRe: Image field in database Pin
Mazdak28-Aug-02 3:45
Mazdak28-Aug-02 3:45 
GeneralRe: Image field in database Pin
Paul Riley28-Aug-02 3:58
Paul Riley28-Aug-02 3:58 
Well... the solution for me was to upload it to the database using exactly the opposite code I used to download it from the database. ie. insert the picture as-is into an OLE object. It can't be read as a graphic by Access, but you can use the code you have to download it.

But if the picture is already in Access then you can't do that.

The alternative is to figure out what is different between the byte array you read from the database and the stream you're trying to create and adjust it.

One idea is to upload a picture to a database then write a piece of code to upload the same image as a byte array. Then write another piece of code to download both and compare the arrays.

Once you've done that, let us know what the difference is Smile | :)
GeneralRe: Image field in database Pin
Mazdak28-Aug-02 5:51
Mazdak28-Aug-02 5:51 
GeneralRe: Image field in database Pin
Mazdak28-Aug-02 6:33
Mazdak28-Aug-02 6:33 
GeneralRe: Image field in database Pin
Paul Riley28-Aug-02 7:48
Paul Riley28-Aug-02 7:48 
GeneralRe: Image field in database Pin
Mazdak28-Aug-02 3:55
Mazdak28-Aug-02 3:55 
GeneralRe: Image field in database Pin
James T. Johnson28-Aug-02 6:21
James T. Johnson28-Aug-02 6:21 
GeneralRe: Image field in database Pin
Mazdak28-Aug-02 6:42
Mazdak28-Aug-02 6:42 
GeneralRe: Image field in database Pin
James T. Johnson28-Aug-02 6:54
James T. Johnson28-Aug-02 6:54 
GeneralRe: Image field in database Pin
leppie28-Aug-02 8:16
leppie28-Aug-02 8:16 
GeneralSound Library for C# Pin
leppie28-Aug-02 0:46
leppie28-Aug-02 0:46 
GeneralRe: Sound Library for C# Pin
Michael Mac28-Aug-02 1:40
Michael Mac28-Aug-02 1:40 
GeneralRe: Sound Library for C# Pin
leppie28-Aug-02 10:36
leppie28-Aug-02 10:36 
GeneralRe: Sound Library for C# Pin
Rodney S. Foley28-Aug-02 14:57
Rodney S. Foley28-Aug-02 14:57 
GeneralRe: Sound Library for C# Pin
leppie28-Aug-02 21:50
leppie28-Aug-02 21:50 

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.