Convert IMAGE object to STRING for manipulation?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Trammel

    #1

    Convert IMAGE object to STRING for manipulation?

    Hi, I have a vb.net program made to grab screenshots and then store them in
    image objects.
    The image is displayed in a pictureBox atm but I want to store the data in a
    String only.

    (Without saving to a file on HDD, then loading it as binary)

    Does anyone know how to convert an image into a string & have any pointers
    to information on how the image would look when in the string (Like bit
    patterns, etc)?

    --
    Trammel is a member of DWC (http://dwc.no-ip.org)
    (Please reply to group only)


  • jcvoon

    #2
    Re: Convert IMAGE object to STRING for manipulation?

    Hi:

    I use the ToBase64String function to convert the image stored in the
    database to string;

    System.Convert. ToBase64String( CType(dr(i), Byte()))

    Hope this help
    JCVoon

    Trammel wrote:[color=blue]
    > Hi, I have a vb.net program made to grab screenshots and then store them in
    > image objects.
    > The image is displayed in a pictureBox atm but I want to store the data in a
    > String only.
    >
    > (Without saving to a file on HDD, then loading it as binary)
    >
    > Does anyone know how to convert an image into a string & have any pointers
    > to information on how the image would look when in the string (Like bit
    > patterns, etc)?
    >
    > --
    > Trammel is a member of DWC (http://dwc.no-ip.org)
    > (Please reply to group only)[/color]

    Comment

    Working...