ok i got it saved to the access database :-)
I defined the field as Memo and when I open the database table it looks like "System.Byte[]"... so i guess it's being saved as a byte array.
the problem is when i try to take it back out.
I do (as in the like you gave me):
Dim MyData() As Byte
MyData = myRow("file")
but it gives me the error:
Cannot convert to 'Byte()'.
and when I do:
myRow("file").GetType.Name
I get:
"String"
does this mean that it takes it out of the database as a string? Do you know what I should do?
Main Topics
Browse All Topics





by: flavoPosted on 2006-03-02 at 01:05:13ID: 16082986
What you're after are BLOB's
om/default .aspx?scid =kb;en- us; 308042
This sample is for SQL Server, but should be easy to change to use OleDB and Access.
How To Read and Write BLOB Data by Using ADO.NET with Visual Basic .NET:
http://support.microsoft.c
Now for the table:
• Identity field that is named "ID" of type Integer - Idenity
• Field that is named "Description" of type Text with a length of 50.
• Field that is named "ImgField" of type Memo.
Dave