Problem in storing and retriveing images using dataset from sqlser

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
While stoing an image in table,there is no error.But while retriving it and
loading in to a picturebox i got an error----- Specified cast is not valid.

I wrote the code as
PictureBox1.Image = CType(ds.Item(0).Item(3), Image)

Can any body help me?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top