on 01-08-2015 5:31 PM
Friends
I have a little project that reads a PDF document (FileRead in streammode!) into a BLOB and then must write out the pdf as XML via PBDOM.
How can I convert the BLOB into a string? == the string (<blob>) function is looking for string inside the blob which these bytes are NOT.
.NET has xmlwriter WriteBase64 ( ) method that will convert a byte array into characters. But there does not appear to be a similar helper function in PB
How to do this in PB Classic?
Thanks
Are you just looking to convert the PDF binary data to a 64 bit encoded string? If so, look at the CryptBinaryToString method.in the Windows API. We use it from PB Classic to convert certificate public keys to a 64 bit encoded string to store in a varchar column.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
9 | |
9 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.