background preloader

Ocr-android

Facebook Twitter

All About Web & Mobile Application Development. How to crop large photos with Android MediaStore – androidworks. Overview I'm writing this article to publish my brief research on the MediaStore crop functionality.

How to crop large photos with Android MediaStore – androidworks

Basically, if you want to write an application that leverages the existing Media Gallery and allows a user to pick (with optional face recognition) a portion of his/her image for use inside your application. Uploading files – multipart HTTP POST and Apache HttpClient « Goldin, the Junior. I had to implement a files transferring mechanism where one machine was sending files to another using "multipart/form-data" POST request.

Uploading files – multipart HTTP POST and Apache HttpClient « Goldin, the Junior

It can be done using Apache’s Commons FileUpload and HttpClient. The receiving part was an easy one: We parse an incoming request with ServletFileUpload and get a list of FileItems in return. Each FileItem is either form’s input field or a file uploaded: In our case, we use DiskFileItemFactory to store files larger than 1Mb in a temporary DIR.