Results 1 to 4 of 4

Thread: Converting Text into an image

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2000
    Posts
    39

    Converting Text into an image

    Hello.

    Need a bit of help. In SQL 2000 I have a text field within a table and I want to copy in into a new table, but as an Image. I know that an Explicit conversion isn't allowed but I was wondering if any of you know if it is possible to somehow change it.

    Any input or suggestions would be great.

    Thanks in advance.

  2. #2
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367
    You could write a program that takes the text, prints it to a picturebox. You could then save the picturebox as an image file and upload it to the database.

    Hope this helps,

  3. #3
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    ON, CAN
    Posts
    265
    if you use Negative0's suggest, which is good, you can use the .appendChunk and .getChunk menthods along with a BLOB field. for a good example on how to implement the process of adding and retireve binary data from a database, please read Beacon's nice tutorial on the subject which is located at the top of the database forum!

    good luck
    Regan
    For excellent Winsock example check here WINSOCK

  4. #4

    Thread Starter
    Member
    Join Date
    Jun 2000
    Posts
    39
    Thanks!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width