|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Unable to get Base64Hi Support, We found one sample application at the below URL: http://simple.sourceforge.net/download/stream/doc/tutorial/tutorial.php Here I found a sample application which creates the xml file using “base64” file format. I tried several ways to generate base64 format for a byte array which I have to store in my xml file. So can you please help me out in saving the byte array to base 64 formats as it is done for “MailMessage” class? Or else please provide me the full fledged implementation of MailMessage class so that I can follow the similar lines.
I will be very thankful to you. Regards, Kanhaiya ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Simple-support mailing list Simple-support@... https://lists.sourceforge.net/lists/listinfo/simple-support |
|
|
Re: Unable to get Base64Hi,
All you need to do is download a Base64Encoder and use it
in a get method for example.
@Element
public String getMessage() {
return
Base64Encoder.encode(message);
}
You will find many Java implementations for base64
encoders, Apache have one I believe.
Niall
RBS Global Banking & Markets Office: +44 7879498724 From: Kanhaiya Singh [mailto:kanhaiya.singh@...] Sent: 15 October 2009 16:52 To: simple-support@... Subject: [Simple-support] Unable to get Base64 Hi
Support, We found one sample application at
the below URL: http://simple.sourceforge.net/download/stream/doc/tutorial/tutorial.php Here I found a sample application which creates the xml file using “base64” file format. I tried several ways to generate base64 format for a byte array which I have to store in my xml file. So can you please help me out in saving the byte array to base 64 formats as it is done for “MailMessage” class? Or else please provide me the full fledged implementation of MailMessage class so that I can follow the similar lines.
I will be very thankful to
you. Regards, Kanhaiya *********************************************************************************** The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. Authorised and regulated by the Financial Services Authority. This e-mail message is confidential and for use by the addressee only. If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer. Internet e-mails are not necessarily secure. The Royal Bank of Scotland plc does not accept responsibility for changes made to this message after it was sent. Whilst all reasonable care has been taken to avoid the transmission of viruses, it is the responsibility of the recipient to ensure that the onward transmission, opening or use of this message and any attachments will not adversely affect its systems or data. No responsibility is accepted by The Royal Bank of Scotland plc in this regard and the recipient should carry out such virus and other checks as it considers appropriate. Visit our website at www.rbs.com *********************************************************************************** ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Simple-support mailing list Simple-support@... https://lists.sourceforge.net/lists/listinfo/simple-support |
|
|
Re: Unable to get Base64Hi, Thanks for quick response. My problem is still not solved. I am
sending the sample code files what I am using for reading writing the XML file.
My aim is to write the data in form of base64 and retrieve the same with Simple
xml. I am trying to encode some image file. I am in very urgent need of doing this. Thanks & Regards, Kanhaiya From: niall.gallagher@...
[mailto:niall.gallagher@...] Hi, All you need to do is download a
Base64Encoder and use it in a get method for example. @Element public String getMessage() { return Base64Encoder.encode(message); } You will find many Java implementations
for base64 encoders, Apache have one I believe. Niall Niall Gallagher From: Kanhaiya
Singh [mailto:kanhaiya.singh@...] Hi Support, We found one sample application at the below URL: http://simple.sourceforge.net/download/stream/doc/tutorial/tutorial.php Here I found a sample application which creates the xml file using “base64” file format. I tried several ways to generate base64 format for a byte array which I have to store in my xml file. So can you please help me out in saving the byte array to base 64 formats as it is done for “MailMessage” class? Or else please provide me the full fledged implementation of MailMessage class so that I can follow the similar lines.
I will be very thankful to you. Regards, Kanhaiya ***********************************************************************************The Royal Bank of Scotland plc. Registered in Authorised and regulated by the Financial Services Authority. This e-mail message is confidential and for use by the addressee only. If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer. Internet e-mails are not necessarily secure. The Royal Bank of Scotland plc does not accept responsibility for changes made to this message after it was sent. Whilst all reasonable care has been taken to avoid the transmission of viruses, it is the responsibility of the recipient to ensure that the onward transmission, opening or use of this message and any attachments will not adversely affect its systems or data. No responsibility is accepted by The Royal Bank of Scotland plc in this regard and the recipient should carry out such virus and other checks as it considers appropriate. Visit our website at www.rbs.com***********************************************************************************------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Simple-support mailing list Simple-support@... https://lists.sourceforge.net/lists/listinfo/simple-support |
|
|
|
|
|
Re: Unable to get Base64Hi, I need to write byte array in base64 and
get the same. I am not able to change the data type. Thanks & Regards, Kanhaiya From: Try a string instead of a bytearray. In
Simple byte[] when annotated with @Element will be treated like a comma
separated array of numbers. So do this instead. @Element public void setItemData(String base64) { this.itemData =
Base64.decode(base64); } Niall Niall Gallagher From: Kanhaiya
Singh [mailto:kanhaiya.singh@...] Hi, Thanks for quick response. My problem is still not solved. I am
sending the sample code files what I am using for reading writing the XML file.
My aim is to write the data in form of base64 and retrieve the same with Simple
xml. I am trying to encode some image file. I am in very urgent need of doing this. Thanks & Regards, Kanhaiya From: Hi, All you need to do is download a
Base64Encoder and use it in a get method for example. @Element public String getMessage() { return
Base64Encoder.encode(message); } You will find many Java implementations
for base64 encoders, Apache have one I believe. Niall Niall Gallagher From: Kanhaiya
Singh [mailto:kanhaiya.singh@...] Hi Support, We found one sample application at the below URL: http://simple.sourceforge.net/download/stream/doc/tutorial/tutorial.php Here I found a sample application which creates the xml file using “base64” file format. I tried several ways to generate base64 format for a byte array which I have to store in my xml file. So can you please help me out in saving the byte array to base 64 formats as it is done for “MailMessage” class? Or else please provide me the full fledged implementation of MailMessage class so that I can follow the similar lines.
I will be very thankful to you. Regards, Kanhaiya ***********************************************************************************The Royal Bank of Scotland plc. Registered in Authorised and regulated by the Financial Services Authority. This e-mail message is confidential and for use by the addressee only. If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer. Internet e-mails are not necessarily secure. The Royal Bank of Scotland plc does not accept responsibility for changes made to this message after it was sent. Whilst all reasonable care has been taken to avoid the transmission of viruses, it is the responsibility of the recipient to ensure that the onward transmission, opening or use of this message and any attachments will not adversely affect its systems or data. No responsibility is accepted by The Royal Bank of Scotland plc in this regard and the recipient should carry out such virus and other checks as it considers appropriate. Visit our website at www.rbs.com***********************************************************************************------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Simple-support mailing list Simple-support@... https://lists.sourceforge.net/lists/listinfo/simple-support |
| Free embeddable forum powered by Nabble | Forum Help |