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

Saving & Retrieving Images from Access DataBase

P: n/a
How can I save then retrieve an image from an access Database using VB.Net?

--
Dennis in Houston
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Dennis,

Probably is your problem that in Access Databases are OLE formated images
used.

Those have headers. The most used you get with using this in the code you
probably already have.

\\\
Dim ms As MemoryStream = New MemoryStream(arbyte, 78, arbyte.Length-78)
///

I hope this helps?

Cor
Nov 21 '05 #2

P: n/a
"Dennis" <De****@discussions.microsoft.com> schrieb:
How can I save then retrieve an image from an access Database using
VB.Net?


<URL:http://www.google.de/groups?selm=u%24648L9EFHA.628%40TK2MSFTNGP15.phx.g bl>

Related:

How To Read and Write BLOB Data by Using ADO.NET with Visual Basic .NET
<URL:http://support.microsoft.com/?scid=kb;EN-US;308042>

HOW TO: Read and Write a File to and from a BLOB Column by Using ADO.NET and
Visual Basic .NET
<URL:http://support.microsoft.com/?scid=kb;EN-US;316887>

HOW TO: Read and Write a File to and from a BLOB Column by Using Chunking in
ADO.NET and Visual Basic .NET
<URL:http://support.microsoft.com/?scid=kb;EN-US;317034>

HOW TO: Read and Write BLOB Data by Using ADO.NET Through ASP.NET
<URL:http://support.microsoft.com/?scid=kb;EN-US;326502>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3

P: n/a
Thanks Cor and Herfried. I got it figured out using the examples where I
create a table in an Access DataBase of type Binary. I can then write and
read byte arrays and don't need to use the 78 byte offset. Thanks.

"Herfried K. Wagner [MVP]" wrote:
"Dennis" <De****@discussions.microsoft.com> schrieb:
How can I save then retrieve an image from an access Database using
VB.Net?


<URL:http://www.google.de/groups?selm=u%24648L9EFHA.628%40TK2MSFTNGP15.phx.g bl>

Related:

How To Read and Write BLOB Data by Using ADO.NET with Visual Basic .NET
<URL:http://support.microsoft.com/?scid=kb;EN-US;308042>

HOW TO: Read and Write a File to and from a BLOB Column by Using ADO.NET and
Visual Basic .NET
<URL:http://support.microsoft.com/?scid=kb;EN-US;316887>

HOW TO: Read and Write a File to and from a BLOB Column by Using Chunking in
ADO.NET and Visual Basic .NET
<URL:http://support.microsoft.com/?scid=kb;EN-US;317034>

HOW TO: Read and Write BLOB Data by Using ADO.NET Through ASP.NET
<URL:http://support.microsoft.com/?scid=kb;EN-US;326502>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.