By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,831 Members | 1,174 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,831 IT Pros & Developers. It's quick & easy.

Save PDF

P: n/a
How can I save a PDF file within an XML document using VB.NET?

<Document>
<DocumentType>PDF</DocumentType>
<EncodeType>Base64</EncodeType>
<Content>[PDF DatA]</Content>
</Document>
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies

P: n/a
"test" <te**@test.com> schrieb:
How can I save a PDF file within an XML document using VB.NET?

<Document>
<DocumentType>PDF</DocumentType>
<EncodeType>Base64</EncodeType>
<Content>[PDF DatA]</Content>
</Document>


Check out 'Convert.ToBase64String'. You can use the 'FileStream' and
'BinaryReader' classes to read the data from an existing PDF file, for
example, convert it to a base 64 string and insert it in the XML file.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2

P: n/a
That sounds great. I will give it a try.

Thank you!

- Cheryl

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:ee*************@TK2MSFTNGP15.phx.gbl...
"test" <te**@test.com> schrieb:
How can I save a PDF file within an XML document using VB.NET?

<Document>
<DocumentType>PDF</DocumentType>
<EncodeType>Base64</EncodeType>
<Content>[PDF DatA]</Content>
</Document>


Check out 'Convert.ToBase64String'. You can use the 'FileStream' and
'BinaryReader' classes to read the data from an existing PDF file, for
example, convert it to a base 64 string and insert it in the XML file.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3

P: n/a
This worked great! I saved a PDF file to an element in an XML file. I then
retrieved the PDF from the XML file and saved it to SQL Server.

- Cheryl

"Cheryl" <ch************@impaccompanies.com> wrote in message
news:uj**************@TK2MSFTNGP12.phx.gbl...
That sounds great. I will give it a try.

Thank you!

- Cheryl

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:ee*************@TK2MSFTNGP15.phx.gbl...
"test" <te**@test.com> schrieb:
How can I save a PDF file within an XML document using VB.NET?

<Document>
<DocumentType>PDF</DocumentType>
<EncodeType>Base64</EncodeType>
<Content>[PDF DatA]</Content>
</Document>


Check out 'Convert.ToBase64String'. You can use the 'FileStream' and
'BinaryReader' classes to read the data from an existing PDF file, for
example, convert it to a base 64 string and insert it in the XML file.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.