cancel
Showing results for 
Search instead for 
Did you mean: 

Translating a binary to base64 with file adapter

Former Member
0 Kudos

Hi Guru.

I have a question for you:

I need to read some file (like jpg) and translate it to base64binary because I want to POST the content via a WebService.

Do you have some experience with a problem like this?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I find this:

/people/sap.user72/blog/2005/07/15/copy-a-file-with-same-filename-using-xi

thanks

Manuel Chiarelli

Former Member
0 Kudos

I've done this with Java Mapping. In your java mapping, use this method:


private String toBase64(byte[] myFile) {
		BASE64Encoder b64 = new BASE64Encoder();
		return b64.encodeBuffer(myFile);
	}

Regards,