Solved

Image to Database and Back Again

Posted on 2002-06-04
6
179 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
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Access 2016 VB code 9 115
VBA color chart bars 12 86
Put text in a picture ASP.NET C# 2 57
how to Classify of email (pdf attachments) 7 36
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…

770 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