Solved

Image to Database and Back Again

Posted on 2002-06-04
6
177 Views
Last Modified: 2010-05-02
I need move an image from the image property of a picture box to a database and back again using VB.NET.

I've found a number of references showing how to do this.  They each take a slightly different approach but all only work with Option Strict Off.  When option strict is on they all result in an invalid cast exception.

Can someone provide the code to save and retrieve image data using VB.NET with option strict on?  (I need a solution that does not involve writing the data to a separate file)
0
Comment
Question by:Joe_Griffith
6 Comments
 
LVL 69

Expert Comment

by:Éric Moreau
Comment Utility
0
 
LVL 7

Author Comment

by:Joe_Griffith
Comment Utility
I have seen those articles.  They suffer from the same problem I mentioned in that they seem to rely on a type conversion that works with option strict off but for which I can't figure out how to cast directly.  (one is in C# but appears, at least, to be similar to others I have tried.

0
 
LVL 49

Expert Comment

by:DanRollins
Comment Utility
Joe_Griffith, an EE Moderator will handle this for you.
Moderator, my recommended disposition is:

    Refund points and save as a 0-pt PAQ.

DanRollins -- EE database cleanup volunteer
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 7

Author Comment

by:Joe_Griffith
Comment Utility
I would be delighted to clean up this question.  Other than increasing the points there doesn't seem to be a way to manage questions anymore.  What action should I take?
0
 
LVL 49

Expert Comment

by:DanRollins
Comment Utility
Joe_Griffith,
Alas, the only direct user option for closing a Question is to Accept a Comment as an Answer.  The following options are available if you post a request to Community Support:
* Split points between two or more Experts
* Delete the question entirely
* Close it, but get a refund of your points

In this case, you are already in the queue for that last option so you need take no action.  If you want to exercise any of these options on your other questions, just make a 0-pt Question in the CS topic area and a Moderator will help you (be sure to include the question ID #).
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
Comment Utility
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Vb.net Listview 9 76
Use Multiple Forms 4 38
JSON Response and request in VB6 application 11 120
using web browser with BING 40 80
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now