1. Samuel Sanchez Avila
  2. PowerBuilder
  3. Thursday, 10 September 2020 15:29 PM UTC

Hello everone,Im having a issue.

 

I have been doing this to read a pdf file:

ole_1.object.loadfile("C:/path/file.pdf")

ole_1.object.setpagemode('1')

ole_1.object.setfocus()

 

But now, with a new webservice, im reciving that file in base64. Soo I decoded that base64 string into a Blob, But now how i load it into my ole object???

Accepted Answer
John Fauss Accepted Answer Pending Moderation
  1. Thursday, 10 September 2020 16:01 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi, Samuel -

I think you are at the mercy of the supplier of the OLE server you are using. If it does not have a method available to load the PDF from memory (blob variable), I suppose you will have to write the blob contents to a file first, then use the LoadFile method.

Regards, John

Comment
  1. Samuel Sanchez Avila
  2. Thursday, 10 September 2020 16:21 PM UTC
Oh well then, Thanks Jhon!
  1. Helpful
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.