8
Views
8
Comments
Text to PDF
Question
Hi,
I need to convert a text file to pdf  and i want to know how to decode a BASE64 data may i know what is the procedure for that.
I used the extension Base64 to Binary and then BinaryToText.
I'm getiing a errror for this extension please see that error in my screenshot which i have attached.
Please respond to me if anyone has the solution for this.
Regards,
ChandrasekarRadhakrishnan

Capture1.PNG
UserImage.jpg
Chandrasekar Radhakrishnan
Hi,
Please see my attachment that is the file which needs to be decoded.
Regards,
ChandrasekarRadhakrishnan
base4.txt
2012-10-08 11-59-27
Guilherme Pereira
Staff
Hi Chandrasekar,

It seems that your Base64 string its not valid because your including the square brackets. Just remove them and you should be fine.

Additionally if you use an online convert you'll see that your string is from a PDF thus converting to text is impossible (because the binary is from a pdf file). you can trigger a download to get it.

Check an example here.

Cheers,
Guilherme
SampleDecodeB64.oml
UserImage.jpg
Chandrasekar Radhakrishnan
Hi ,
Thanks for the help guiherme.I had one more doubt how to perform this without pressing the button[i mean dynamically].
Regards,
ChandrasekarRadhakrishnan
2012-10-08 11-59-27
Guilherme Pereira
Staff
Hi,

I didn't understand the question. How dynamically? What are you trying to acomplish?

Cheers,
Guilherme
UserImage.jpg
Chandrasekar Radhakrishnan
HI,
My requirement is i need to convert the record into pdf without any pressing the button.
Regards,
ChandrasekarRadhakrishnan

2012-10-08 11-59-27
Guilherme Pereira
Staff
In that case you should put that on an action that fetches the base64 from some source and then writes the pdf binary somewhere.

And you can put that on a timer for instance.

Cheers,
Guilherme
UserImage.jpg
Chandrasekar Radhakrishnan
Hi,
Can you explain me with the source which i gave yesterday.
Regards,
ChandrasekarRadhakrishnan
UserImage.jpg
Chandrasekar Radhakrishnan
Hi,
This is my OML file which i have attached.I have done it dynamically but i'm not getting it  can 
you just have a look out into that.
Regards,
ChandrasekarRadhakrishnan
CREDITAPIfeb25.oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.