convert a pdf file into byte array and pass it to a service and from byte array to pdf

  • Thread starter Thread starter tom_herman
  • Start date Start date
T

tom_herman

Guest
hello

i am using spire.pdf dll.

i have a winform in which i read a pdf file from a folder.

i want to convert it to a byte array(or to a better option???) and pass it as variable to a WCF service(which i have)

in the WCF service i want to save this byte array as PDF.

i am getting an "index was out of bounds of an array" when i am trying to open a new pdf document with this byte array:

the size of the array is 910200 bytes

PdfDocument doc = new PdfDocument();

doc.LoadFromBytes(byteArray);------> Here i get the Exception

doc.SaveToFile(.......)

Continue reading...
 

Similar threads

L
Replies
0
Views
160
LearningVisualC2005
L
P
Replies
0
Views
176
Policy standard local admin account with Active Di
P
Back
Top