Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27349

save PDF into SQL varbinary column

$
0
0
I use image object to save image (jpg file) into SQL varbinary column as code below. It works fine.

Now, I need to insert pdf file but Imaging.ImageFormat do not have pdf option.

How to insert pdf file?

Using picture As Image = Image.FromFile(sImagePath & "\" & PDFFile & ".pdf")
Using stream As New IO.MemoryStream
picture.Save(stream, Imaging.ImageFormat.Jpeg)

Viewing all articles
Browse latest Browse all 27349

Trending Articles