Skip to content

Send files using XML-RPC in Java

Hello

Tooday Jorge send me an e-mail asking how to send files using XML-RPC. So I did some modifications in Client and Server, Java XML-RPC to do this.

I implemented this and it wasn’t so hard. I read the documentation of Apache XML-RPC to see how to send bytes. They are send using an array of bytes (byte[]) in a Base64 codification.

To create the Base64 codification I used Java Base64 in public domain.

How to get an array of bytes from a file

How to create a file from a array of bytes

XML-RPC-Transfer-file

Matheus

PS: This is just an example, any file that client ask, the server will send. It WILL BE A SYSTEM VULNERABILITY!

Published inAprendendojava

118 Comments

  1. Vavada to znane kasyno online, które działa również w Polsce. Strona przyciąga graczy szeroką ofertą gier, przejrzystymi warunkami i obsługą w PLN (zł). Bonus powitalny oraz intuicyjna obsługa sprawiają, że platforma zdobyła popularność wśród polskich użytkowników.

  2. Коли я відчув внутрішнє виснаження я почав шукати допомогу психолога. Так я натрапив на https://fmstudio.com.ua/category/psyhologiya
    . Там я ознайомився зі статтями психолога Івана Петренка. Матеріали з прикладами з життя і допомагають знизити рівень напруги. Тепер періодично повертаюся до цих статей усім, хто хоче краще справлятися зі стресом.

  3. Vavada to znane kasyno online, które działa również w Polsce. Strona przyciąga graczy szeroką ofertą gier, przejrzystymi warunkami i obsługą w PLN (zł). Bonus powitalny oraz intuicyjna obsługa sprawiają, że platforma zdobyła popularność wśród polskich użytkowników.

Leave a Reply

Your email address will not be published. Required fields are marked *