Results 1 to 2 of 2

Thread: PDF to Binary

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Location
    Kolkata, India
    Posts
    290

    PDF to Binary

    I want to store .pdf into image field of sql 2008

    and display the same in vb.net without using adobe pdf reader

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: PDF to Binary

    You can use FileStream to read any file as binary data, or just call File.ReadAllBytes.

    iTextSharp will allow you to manipulate PDF files in code but I'm not sure it will render them for you. You could buy some other PDF component but Adobe Reader is virtually ubiquitous so that would be the easiest option.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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