GithubHelp home page GithubHelp logo

gfdittmer / android-java-to-.net-socket Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pulsejet/android-java-to-.net-socket

0.0 2.0 0.0 183 KB

Simple Server-Client for single way file transfer from Android (Java) to C# or VisualBasic.NET

License: Apache License 2.0

Java 41.66% C# 20.51% Visual Basic 37.83%

android-java-to-.net-socket's Introduction

android-java-to-.NET-socket

Simple android client in Java that transfers a single file over a wireless network to an IP:Port over a socket to the server coded in C# or VisualBasic.NET. The client currently clicks a photo using the camera intent.

Protocol

Communication is only from client to server. Before sending the image, the clients sends the word "HEADER" (without quotes) followed by a newline, then the exact size of the file to be sent in bytes followed by another newline and then the contents of the file. Following this, the connection is closed.

To test connectivity, the client opens and closes a connection without sending any data.

Notes:

  • The client transfers a single photograph right now after compressing and resizing. This can be changed as required.
  • The server IP and port are autodetected.
  • The file name for the received file is hard coded in the server. This can be modified if required by adding a file name to the header in the client's first buffer.

Binaries:

Binaries for the server and the client can be downloaded from releases. The client is also available on Google Play.

android-java-to-.net-socket's People

Contributors

pulsejet avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.