Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Image to Database and Back Again

Posted on 2002-06-04
6
Medium Priority
?
189 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 70

Expert Comment

by:Éric Moreau
ID: 7053773
0
 
LVL 7

Author Comment

by:Joe_Griffith
ID: 7054401
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
ID: 7851458
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 7

Author Comment

by:Joe_Griffith
ID: 7853071
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
ID: 7855643
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
ID: 7912936
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

886 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