About
Pricing
Community
Teams
Start Free Trial
Log in
bbrian51
asked on
12/21/2012
Saving Object as System.IO.Stream
Hi,
I am having issues converting my PDF object into a Byte() to print. I have a object called myPDF that has the following method definition:
myPDF.SaveMergedPDFToStrea
m(outPDFSt
ream AS System.IO.Stream)
My print routine has the following definition:
myPrinter.SendBytesToPrint
er(Bytes()
AS Byte)
I can make it work saving the file to disk and then reading it back in...but that seems pointless.
Thanks,
Brian
Visual Basic.NET
3
1
Last Comment
bbrian51
8/22/2022 - Mon
Nasir Razzaq
12/21/2012
You can use Read method of stream to convert stream to byte array
http://msdn.microsoft.com/en-us/library/system.io.stream.read.aspx
ASKER CERTIFIED SOLUTION
kaufmed
12/21/2012
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
bbrian51
12/21/2012
ASKER
Thanks
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
http://msdn.microsoft.com/en-us/library/system.io.stream.read.aspx