![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I am attempting to pull Blob information from a DB and am not getting anywhere
here is the code Dim blobdata(0) As Byte DBCMD.CommandText="Select * from logs" DBRead.Value=DBCMD.ExecuteReader Do While DBRead.ReadNextRow = True blobdata() = DBRead.GetBytes(2) For i = 0 To ArrayLen(blobdata()) - 1 blobtext = blobtext & blobdata(i) Next Whenever it hits this line blobdata() = DBRead.GetBytes(2) I get a Specified cast is not valid I know that there is data in the DB Any Ideas? Thanks |
|
||||
|
Please try to read the data with SQLite Viewer. Choose Show - Data over the right column and see if it works.
This method uses GetBytes. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Parameter is not valid | lancaster | Questions & Help Needed | 2 | 10-27-2008 10:27 PM |
| Strange cast error | agraham | Beta Versions | 1 | 10-11-2008 07:43 PM |
| Unable to cast Object Treeview.node | Mr_Gee | Questions & Help Needed | 15 | 03-21-2008 07:13 PM |
| Specified cast is not valid | skipper | Questions & Help Needed | 7 | 03-12-2008 08:17 AM |